hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sohan Jain (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-2256) Better error message in CLI on invalid column name
Date Tue, 05 Jul 2011 21:16:25 GMT

     [ https://issues.apache.org/jira/browse/HIVE-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sohan Jain updated HIVE-2256:
-----------------------------

    Attachment: HIVE-2256.2.patch

-Updated the outputs for unit tests.
-Fixed the error message to include the line number and position in the query of the invalid
column.

> Better error message in CLI on invalid column name
> --------------------------------------------------
>
>                 Key: HIVE-2256
>                 URL: https://issues.apache.org/jira/browse/HIVE-2256
>             Project: Hive
>          Issue Type: Improvement
>          Components: CLI, Query Processor
>            Reporter: Sohan Jain
>            Assignee: Sohan Jain
>         Attachments: HIVE-2256.1.patch, HIVE-2256.2.patch
>
>
> In the CLI, if a user inputs an incorrect column name, we currently just print the bad
column name in the query.  Typically, the user needs to "describe" the table to figure out
the correct column.
> This patch prints out a list of valid column and partition names in the table when a
user inputs an incorrect column name.
> e.g., 
> {{Error in semantic analysis: Invalid table alias or column reference 'col_does_not_exist'
(possible column names are: col1, col2)}}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message