hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Peña (JIRA) <j...@apache.org>
Subject [jira] [Commented] (HIVE-13967) CREATE table fails when 'values' column name is found on the table spec.
Date Wed, 08 Jun 2016 14:58:21 GMT

    [ https://issues.apache.org/jira/browse/HIVE-13967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15320693#comment-15320693
] 

Sergio Peña commented on HIVE-13967:
------------------------------------

Thanks [~chetna]. 
Do you know why we have reserved keywords for column names? Could it be because the way Hive
parses the query? Can we fix that?
In the meantime, I think it would be better to fix the long error exception at least. It would
be good to have hive display a simple message than a long stacktrace.

> CREATE table fails when 'values' column name is found on the table spec.
> ------------------------------------------------------------------------
>
>                 Key: HIVE-13967
>                 URL: https://issues.apache.org/jira/browse/HIVE-13967
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 2.2.0
>            Reporter: Sergio Peña
>            Assignee: Abdullah Yousufi
>
> {noformat}
> hive> create table pkv (key int, values string);                                 
                                                                                      [0/4271]
> FailedPredicateException(identifier,{useSQL11ReservedKeywordsForIdentifier()}?)
>         at org.apache.hadoop.hive.ql.parse.HiveParser_IdentifiersParser.identifier(HiveParser_IdentifiersParser.java:11914)
>         at org.apache.hadoop.hive.ql.parse.HiveParser.identifier(HiveParser.java:51795)
>         at org.apache.hadoop.hive.ql.parse.HiveParser.columnNameType(HiveParser.java:42051)
>         at org.apache.hadoop.hive.ql.parse.HiveParser.columnNameTypeOrPKOrFK(HiveParser.java:42308)
>         at org.apache.hadoop.hive.ql.parse.HiveParser.columnNameTypeOrPKOrFKList(HiveParser.java:37966)
>         at org.apache.hadoop.hive.ql.parse.HiveParser.createTableStatement(HiveParser.java:5259)
>         at org.apache.hadoop.hive.ql.parse.HiveParser.ddlStatement(HiveParser.java:2763)
>         at org.apache.hadoop.hive.ql.parse.HiveParser.execStatement(HiveParser.java:1756)
>         at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:1178)
>         at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:204)
>         at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:166)
>         at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:404)
>         at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:329)
>         at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1158)
>         at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1253)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1084)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1072)
>         at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:232)
>         at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:183)
>         at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:399)
>         at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:776)
>         at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:714)
>         at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:641)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> FAILED: ParseException line 1:27 Failed to recognize predicate 'values'. Failed rule:
'identifier' in column specification
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message