Created
June 20, 2013 21:20
-
-
Save gregrahn/5826754 to your computer and use it in GitHub Desktop.
Example of PostgreSQL VALUES() functionality in Cloudera Impala.
Examples:
https://issues.cloudera.org/browse/IMPALA-68
http://www.postgresql.org/docs/9.2/static/sql-values.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [impala1:21000] > | |
| select * | |
| from (values ('2013-06-01' as col1), | |
| ('2013-06-02'), | |
| ('2013-06-02'), | |
| ('2013-06-03'), | |
| ('2013-06-04'), | |
| ('2013-06-05') | |
| ) x; | |
| Query finished, fetching results ... | |
| +------------+ | |
| | col1 | | |
| +------------+ | |
| | 2013-06-01 | | |
| | 2013-06-02 | | |
| | 2013-06-02 | | |
| | 2013-06-03 | | |
| | 2013-06-04 | | |
| | 2013-06-05 | | |
| +------------+ | |
| Returned 6 row(s) in 0.18s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment