mirror of
https://github.com/apache/impala.git
synced 2026-01-07 09:02:19 -05:00
SHOW CREATE TABLE now supports views. It returns a CREATE VIEW statement with column names and the original sql statement. Authorization allows SHOW CREATE TABLE to be run on view if the user has VIEW_METADATA privilege on the view and SELECT privilege on all underlying views and table. E.g. "SHOW CREATE TABLE some_view" returns output of form: CREATE VIEW a_database.some_view (id, bool_col, tinyint_col) AS SELECT id, bool_col, tinyint_col FROM functional.alltypes Change-Id: Id633af2f5c1f5b0e01c13ed85c4bf9c045dc0666 Reviewed-on: http://gerrit.cloudera.org:8080/713 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Internal Jenkins