[
https://issues.apache.org/jira/browse/HIVE-1939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990309#comment-12990309
]
Carl Steinbach commented on HIVE-1939:
--------------------------------------
@John: Yup, you're right. The problem is that HIVE-1636 modified
'SHOW TABLES IN <db>' to throw an error when db doesn't exist.
Previously in this situation the SHOW TABLES command just returned
an empty result set.
url_hook.q points the MetaStore to a new JDO URL and then runs
'SHOW TABLES'. In the past this caused the metastore to initialize
a new metastore schema, but without creating the 'default' database.
Since 'SHOW TABLES' wasn't checking for the existence of the
default database the command succeeded with an empty result set.
I think the correct fix for this problem is to make sure that the metastore
creates the 'default' table if it does not already exist.
> Fix test failure in TestContribCliDriver/url_hook.q
> ---------------------------------------------------
>
> Key: HIVE-1939
> URL: https://issues.apache.org/jira/browse/HIVE-1939
> Project: Hive
> Issue Type: Bug
> Components: Metastore
> Reporter: Carl Steinbach
> Assignee: Carl Steinbach
> Fix For: 0.7.0
>
>
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira