Skip to content

Instantly share code, notes, and snippets.

@gregrahn
Created June 20, 2013 21:20
Show Gist options
  • Select an option

  • Save gregrahn/5826754 to your computer and use it in GitHub Desktop.

Select an option

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
[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