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

Robert Surówka commented on HIVE-2510:
--------------------------------------

I see. Could you point me to where in code this "create table call to 
MetaStore" is done? 

If it is done at the moment of executing a task, I think it will be better to 
check for existence of the database 2 times - once at the moment of Semantic 
Analysis and once during the transaction. The reason is, if database doesn't 
exist from the beginning we can faster tell user about it and we use less 
resources (especially if table is created as select). Furthermore the 
null-pointer exception this Jira is about is thrown before the task starts 
execution, so if that check for database existence was only during the task 
execute, we would need to "wrap" that null pointer exception and "carry it" 
until that moment.   
                
> Hive throws Null Pointer Exception upon CREATE TABLE <db_name>.<table_name> 
> ....     if the given <db_name> doesn't exist
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-2510
>                 URL: https://issues.apache.org/jira/browse/HIVE-2510
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Robert Surówka
>            Assignee: Robert Surówka
>            Priority: Trivial
>         Attachments: HIVE-2510.1.patch, HIVE-2510.2.patch, HIVE-2510.3.patch
>
>


--
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