[ https://issues.apache.org/jira/browse/HIVE-5407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13789728#comment-13789728 ]
Hudson commented on HIVE-5407: ------------------------------ FAILURE: Integrated in Hive-trunk-h0.21 #2388 (See [https://builds.apache.org/job/Hive-trunk-h0.21/2388/]) HIVE-5407 : show create table creating unusable DDL when some reserved keywords exist (Zhichun Wu via Ashutosh Chauhan) (hashutosh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1530310) * /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java * /hive/trunk/ql/src/test/results/clientpositive/show_create_table_alter.q.out * /hive/trunk/ql/src/test/results/clientpositive/show_create_table_db_table.q.out * /hive/trunk/ql/src/test/results/clientpositive/show_create_table_delimited.q.out * /hive/trunk/ql/src/test/results/clientpositive/show_create_table_partitioned.q.out * /hive/trunk/ql/src/test/results/clientpositive/show_create_table_serde.q.out * /hive/trunk/ql/src/test/results/clientpositive/show_create_table_view.q.out > show create table creating unusable DDL when some reserved keywords exist > -------------------------------------------------------------------------- > > Key: HIVE-5407 > URL: https://issues.apache.org/jira/browse/HIVE-5407 > Project: Hive > Issue Type: Bug > Components: CLI > Environment: hive 0.11 > Reporter: Zhichun Wu > Assignee: Zhichun Wu > Priority: Minor > Fix For: 0.13.0 > > Attachments: D13191.1.patch, HIVE-5407.1.patch > > > HIVE-701 already makes most reserved keywords available for > table/column/partition names and 'show create table' produces usable DDLs. > However I think it's better if we quote table/column/partition names for the > output of 'show create table', which is how mysql works and seems more robust. > For example, use select as column name will produce unusable DDL: > {code} > create table table_select(`select` string); > show create table table_select; > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)