mirror of
https://github.com/apache/impala.git
synced 2026-01-05 21:00:54 -05:00
IMPALA-4579: SHOW CREATE VIEW fails for view containing a subquery
This commit fixes an issue where a SHOW CREATE VIEW statement throws an analysis error if the view contains a subquery. Change-Id: I4a89e46a022f0ccec198b6e3e2b30230103831ce Reviewed-on: http://gerrit.cloudera.org:8080/5333 Reviewed-by: Dimitris Tsirogiannis <dtsirogiannis@cloudera.com> Tested-by: Internal Jenkins
This commit is contained in:
committed by
Internal Jenkins
parent
ff629c2deb
commit
1da57019ad
@@ -337,3 +337,12 @@ STORED AS PARQUET
|
||||
LOCATION '$$location_uri$$'
|
||||
TBLPROPERTIES ()
|
||||
====
|
||||
---- CREATE_VIEW
|
||||
# Create view that contains a subquery (IMPALA-4579)
|
||||
CREATE VIEW view_with_subquery AS SELECT * FROM functional.alltypestiny
|
||||
WHERE id IN (SELECT id FROM functional.alltypesagg);
|
||||
---- RESULTS
|
||||
CREATE VIEW show_create_table_test_db.view_with_subquery
|
||||
AS SELECT * FROM functional.alltypestiny
|
||||
WHERE id IN (SELECT id FROM functional.alltypesagg)
|
||||
====
|
||||
|
||||
Reference in New Issue
Block a user