impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zach Amsden (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-4318: Kudu support for CREATE EXTERNAL TABLE AS SELECT
Date Mon, 20 Mar 2017 22:10:13 GMT
Zach Amsden has posted comments on this change.

Change subject: IMPALA-4318:  Kudu support for CREATE EXTERNAL TABLE AS SELECT

Patch Set 7:

Commit Message:

Line 10: new by inferring that from the presence of column definitions, not
> what does 'if a table creation is new' mean?
New rather that existing table.  Terminology here is confusing, as managed != external, yet
in many places of code and documentation, that is implied.  Will rephrase.
File fe/src/test/java/org/apache/impala/analysis/

Line 2264:         "tblproperties('kudu.table_name'='t')", "Table partitioning must be " +
> why is that? wouldn't the kudu table/metadata be able to provide that?
Specifying any part of the metadata (x int) now implies a table creation, as we use the presence
of column definitions to infer that this is a table creation.  Since the assumption is that
the table is being created, we need to know the partitioning scheme to create it.  I tried
to make the error message suggest this.  I'll add a positive test case to illustrate the required
File tests/query_test/

PS6, Line 360:     kudu_tbl_name = KuduTestSuite.to_kudu_table_name(unique_database, "foo2")
             :     assert kudu_client.table_exists(kudu_tbl_name)
             :     cursor.execute("SELECT * FROM %s.foo2" % (unique_database))
             :     assert len(cursor.fetchall()) == 1
             :     cursor.execute("DROP TABLE %s.foo2" % (unique_database))
             :     assert kudu_client.table_exists(kudu_tbl_name)
> foo2 in kudu won't be deleted when you drop the database in impala though, 
Good point.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I9aa82809a6c0c5e6386827314b7e5b520c1a6633
Gerrit-PatchSet: 7
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Zach Amsden <>
Gerrit-Reviewer: Dan Hecht <>
Gerrit-Reviewer: Dimitris Tsirogiannis <>
Gerrit-Reviewer: Marcel Kornacker <>
Gerrit-Reviewer: Matthew Jacobs <>
Gerrit-Reviewer: Thomas Tauber-Marshall <>
Gerrit-Reviewer: Zach Amsden <>
Gerrit-HasComments: Yes

View raw message