hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aviv Eyal (JIRA)" <>
Subject [jira] [Updated] (HIVE-198) Parse errors report incorrectly.
Date Wed, 07 Sep 2011 02:53:09 GMT


Aviv Eyal updated HIVE-198:

          Labels: parse  (was: )
    Release Note: Improved parse error messages
          Status: Patch Available  (was: Open)

I've modified the message to include the actual token it fails on (When available).
It should make it easier to grok the actual problem from the error.

> Parse errors report incorrectly.
> --------------------------------
>                 Key: HIVE-198
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: S. Alex Smith
>              Labels: parse
> The following two queries fail:
> CREATE TABLE output_table(userid, bigint);
> CREATE TABLE output_table(userid bigint, age int, sex string, location string);
> each giving the error message "FAILED: Parse Error: line 1:16 mismatched input 'TABLE'
expecting KW_TEMPORARY"
> Although one might not catch it from the error message, the problem with the first is
that there is a comma between "userid" and "bigint", and the problem with the second is that
"location" is a reserved keyword.  Reported errors should more accurately describe the nature
of the error, such as "no type given for column 'userid'" or "'location' is not a valid column

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message