IMPALA-507: Creating a VIEW that does not reference a table fails with IllegalStateException.

Change-Id: I11470ba919bbfced76730adae2a46647c4ef110b
Reviewed-on: http://gerrit.ent.cloudera.com:8080/146
Reviewed-by: Lenni Kuff <lskuff@cloudera.com>
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: Alex Behm <alex.behm@cloudera.com>
This commit is contained in:
Alex Behm
2013-08-05 23:19:44 -07:00
committed by Henry Robinson
parent 52c9d26d16
commit 2b427208e5
2 changed files with 18 additions and 5 deletions

View File

@@ -220,4 +220,13 @@ select count(bigint_col), count(string_col) from ddl_test_db.new_parquet_view
0,10
---- TYPES
bigint,bigint
====
---- QUERY
# Create a view on a constant select and try to query it.
create view ddl_test_db.const_view
as select 1, 'a', 10.0
---- RESULTS
1,'a',10.0
---- TYPES
tinyint,string,float
====