Aihua Xu created HIVE-15476:
-------------------------------

             Summary: ObjectStore.getMTableColumnStatistics() should check if 
colNames is empty
                 Key: HIVE-15476
                 URL: https://issues.apache.org/jira/browse/HIVE-15476
             Project: Hive
          Issue Type: Bug
          Components: Query Planning
    Affects Versions: 2.2.0
            Reporter: Aihua Xu
            Assignee: Aihua Xu
            Priority: Minor


See the following exception in the log. Can't find out which exact query causes 
it though.

{noformat}
[pool-4-thread-31]: Exception thrown
Method/Identifier expected at character 37 in "tableName == t1 && dbName == t2 
&& ()"
org.datanucleus.store.query.QueryCompilerSyntaxException: Method/Identifier 
expected at character 37 in "tableName == t1 && dbName == t2 && ()"
        at 
org.datanucleus.query.compiler.JDOQLParser.processPrimary(JDOQLParser.java:810)
        at 
org.datanucleus.query.compiler.JDOQLParser.processUnaryExpression(JDOQLParser.java:656)
        at 
org.datanucleus.query.compiler.JDOQLParser.processMultiplicativeExpression(JDOQLParser.java:582)
        at 
org.datanucleus.query.compiler.JDOQLParser.processAdditiveExpression(JDOQLParser.java:553)
        at 
org.datanucleus.query.compiler.JDOQLParser.processRelationalExpression(JDOQLParser.java:467)
        at 
org.datanucleus.query.compiler.JDOQLParser.processAndExpression(JDOQLParser.java:450)
        at 
org.datanucleus.query.compiler.JDOQLParser.processExclusiveOrExpression(JDOQLParser.java:436)
        at 
org.datanucleus.query.compiler.JDOQLParser.processInclusiveOrExpression(JDOQLParser.java:422)
        at 
org.datanucleus.query.compiler.JDOQLParser.processConditionalAndExpression(JDOQLParser.java:408)
        at 
org.datanucleus.query.compiler.JDOQLParser.processConditionalOrExpression(JDOQLParser.java:389)
        at 
org.datanucleus.query.compiler.JDOQLParser.processExpression(JDOQLParser.java:378)
        at 
org.datanucleus.query.compiler.JDOQLParser.processPrimary(JDOQLParser.java:785)
        at 
org.datanucleus.query.compiler.JDOQLParser.processUnaryExpression(JDOQLParser.java:656)
        at 
org.datanucleus.query.compiler.JDOQLParser.processMultiplicativeExpression(JDOQLParser.java:582)
        at 
org.datanucleus.query.compiler.JDOQLParser.processAdditiveExpression(JDOQLParser.java:553)
        at 
org.datanucleus.query.compiler.JDOQLParser.processRelationalExpression(JDOQLParser.java:467)
        at 
org.datanucleus.query.compiler.JDOQLParser.processAndExpression(JDOQLParser.java:450)
        at 
org.datanucleus.query.compiler.JDOQLParser.processExclusiveOrExpression(JDOQLParser.java:436)
        at 
org.datanucleus.query.compiler.JDOQLParser.processInclusiveOrExpression(JDOQLParser.java:422)
        at 
org.datanucleus.query.compiler.JDOQLParser.processConditionalAndExpression(JDOQLParser.java:412)
        at 
org.datanucleus.query.compiler.JDOQLParser.processConditionalOrExpression(JDOQLParser.java:389)
        at 
org.datanucleus.query.compiler.JDOQLParser.processExpression(JDOQLParser.java:378)
        at org.datanucleus.query.compiler.JDOQLParser.parse(JDOQLParser.java:99)
        at 
org.datanucleus.query.compiler.JavaQueryCompiler.compileFilter(JavaQueryCompiler.java:467)
        at 
org.datanucleus.query.compiler.JDOQLCompiler.compile(JDOQLCompiler.java:113)
        at 
org.datanucleus.store.query.AbstractJDOQLQuery.compileInternal(AbstractJDOQLQuery.java:367)
        at 
org.datanucleus.store.rdbms.query.JDOQLQuery.compileInternal(JDOQLQuery.java:240)
        at org.datanucleus.store.query.Query.executeQuery(Query.java:1744)
        at org.datanucleus.store.query.Query.executeWithArray(Query.java:1672)
        at org.datanucleus.api.jdo.JDOQuery.executeWithArray(JDOQuery.java:312)
        at 
org.apache.hadoop.hive.metastore.ObjectStore.getMTableColumnStatistics(ObjectStore.java:6505)
        at 
org.apache.hadoop.hive.metastore.ObjectStore.access$1200(ObjectStore.java:171)
        at 
org.apache.hadoop.hive.metastore.ObjectStore$9.getJdoResult(ObjectStore.java:6566)
        at 
org.apache.hadoop.hive.metastore.ObjectStore$9.getJdoResult(ObjectStore.java:6555)
        at 
org.apache.hadoop.hive.metastore.ObjectStore$GetHelper.run(ObjectStore.java:2629)
        at 
org.apache.hadoop.hive.metastore.ObjectStore.getTableColumnStatisticsInternal(ObjectStore.java:6554)
        at 
org.apache.hadoop.hive.metastore.ObjectStore.getTableColumnStatistics(ObjectStore.java:6548)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
org.apache.hadoop.hive.metastore.RawStoreProxy.invoke(RawStoreProxy.java:114)
        at com.sun.proxy.$Proxy12.getTableColumnStatistics(Unknown Source)
        at 
org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.get_table_statistics_req(HiveMetaStore.java:4401)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at 
org.apache.hadoop.hive.metastore.RetryingHMSHandler.invokeInternal(RetryingHMSHandler.java:138)
        at 
org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:99)
        at com.sun.proxy.$Proxy14.get_table_statistics_req(Unknown Source)
        at 
org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Processor$get_table_statistics_req.getResult(ThriftHiveMetastore.java:11028)
        at 
org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Processor$get_table_statistics_req.getResult(ThriftHiveMetastore.java:11012)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
        at 
org.apache.hadoop.hive.metastore.TUGIBasedProcessor$1.run(TUGIBasedProcessor.java:110)
        at 
org.apache.hadoop.hive.metastore.TUGIBasedProcessor$1.run(TUGIBasedProcessor.java:106)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:415)
        at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1796)
        at 
org.apache.hadoop.hive.metastore.TUGIBasedProcessor.process(TUGIBasedProcessor.java:118)
        at 
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to