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

Sambavi Muthukrishnan updated HIVE-3282:
----------------------------------------

           Description: 
The SHOW PARTITIONS command in Hive does not check for valid table and 
partition names during query compilation. Calling this command with 
non-existent table causes a run-time exception.

The DESC command also does not check for this in semantic analysis.

hive> desc xxxyyy;
OK
Table xxxyyy does not exist
Time taken: 1.403 seconds

hive> show partitions xxxyyy;
Table xxxyyy does not exist
FAILED: Execution Error, return code 1 from 
org.apache.hadoop.hive.ql.exec.DDLTask

    Remaining Estimate: 24h
     Original Estimate: 24h
    
> Convert runtime exceptions to semantic exceptions for missing 
> partitions/tables in show/describe statements
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-3282
>                 URL: https://issues.apache.org/jira/browse/HIVE-3282
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.9.0
>            Reporter: Sambavi Muthukrishnan
>            Assignee: Sambavi Muthukrishnan
>            Priority: Minor
>             Fix For: 0.9.1
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The SHOW PARTITIONS command in Hive does not check for valid table and 
> partition names during query compilation. Calling this command with 
> non-existent table causes a run-time exception.
> The DESC command also does not check for this in semantic analysis.
> hive> desc xxxyyy;
> OK
> Table xxxyyy does not exist
> Time taken: 1.403 seconds
> hive> show partitions xxxyyy;
> Table xxxyyy does not exist
> FAILED: Execution Error, return code 1 from 
> org.apache.hadoop.hive.ql.exec.DDLTask

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to