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

Arvind Prabhakar commented on HIVE-1176:
----------------------------------------

Updated the patch so that it cleanly applies to the trunk. 

*Changes from Previous Patch:*

* This patch uses ivy to download the updated datanucleus plugins and other 
dependent libraries. There is no need to use the previously supplied tar.gz 
anymore.
* At the time the previous patch was written, the enhancer plugin version was 
2.0.1 which by default would enable annotation processing. Since then version 
2.0.3 has been released which [disables this 
behavior|http://www.datanucleus.org/servlet/jira/browse/NUCENHANCER-56]. Hence 
the previously submitted changes to {{javac.args}} in build.properties file are 
no longer necessary. This patch uses the updated version of the datanucleus 
enhancer plugin.
* The JDO2 API library used by datanucleus plugin is distributed by the 
datanucleus's public maven repository. This repository has been added to ivy 
configuration to automate the download.
* The connection pool libraries have been updated to work with the newer 
datanucleus plugins. Library {{commons-dbcp}} has been updated from 1.2.2 to 
1.4, {{commons-pool}} from 1.2 to 1.5.4, and {{datanucleus-connectionpool}} 
from 1.0.2 to 2.0.1.
* As with the previously submitted patch, {{HiveMetaStoreClient}} 
implementation has been modified to create deep-copies of non-primitive objects 
being returned from the thrift server in order to avoid semi-populated proxies 
causing NPEs downstream.

*Testing Done:*

Built and ran all tests. Only two failures were reported as before - 
clientpositive test for input20.q and input33.q. These tests appear to be 
failing on the trunk as well.


> 'create if not exists' fails for a table name with 'select' in it
> -----------------------------------------------------------------
>
>                 Key: HIVE-1176
>                 URL: https://issues.apache.org/jira/browse/HIVE-1176
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Metastore, Query Processor
>            Reporter: Prasad Chakka
>            Assignee: Arvind Prabhakar
>         Attachments: HIVE-1176-1.patch, HIVE-1176.lib-files.tar.gz, 
> HIVE-1176.patch
>
>
> hive> create table if not exists tmp_select(s string, c string, n int);
> org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Got 
> exception: javax.jdo.JDOUserException JDOQL Single-String query should always 
> start with SELECT)
>         at 
> org.apache.hadoop.hive.ql.metadata.Hive.getTablesForDb(Hive.java:441)
>         at 
> org.apache.hadoop.hive.ql.metadata.Hive.getTablesByPattern(Hive.java:423)
>         at 
> org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeCreateTable(SemanticAnalyzer.java:5538)
>         at 
> org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:5192)
>         at 
> org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:105)
>         at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:275)
>         at org.apache.hadoop.hive.ql.Driver.runCommand(Driver.java:320)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:312)
>         at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
>         at 
> org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
>         at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
> Caused by: MetaException(message:Got exception: javax.jdo.JDOUserException 
> JDOQL Single-String query should always start with SELECT)
>         at 
> org.apache.hadoop.hive.metastore.MetaStoreUtils.logAndThrowMetaException(MetaStoreUtils.java:612)
>         at 
> org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getTables(HiveMetaStoreClient.java:450)
>         at 
> org.apache.hadoop.hive.ql.metadata.Hive.getTablesForDb(Hive.java:439)
>         ... 15 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to