Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Impala 3.1.0
-
None
-
None
-
ghx-label-4
Description
Create a table that includes a column called `location`. Issue a SHOW CREATE TABLE command for that table. You will get the sql with the name unquoted. Try to execute that statement. You'll get an error:
Syntax error in line 11: location STRING, ^ Encountered: LOCATION Expected: DEFAULT, PRIMARY, IDENTIFIER
Reason: LOCATION is a SQL reserved word. The implementation of SHOW CREATE TABLE should escape reserved column names. Using the ToSqlUtils method for that purpose.