You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Gopal V (JIRA)" <ji...@apache.org> on 2015/02/21 09:34:11 UTC

[jira] [Created] (HIVE-9748) MetastoreDirectSql fails for zero partition queries

Gopal V created HIVE-9748:
-----------------------------

             Summary: MetastoreDirectSql fails for zero partition queries
                 Key: HIVE-9748
                 URL: https://issues.apache.org/jira/browse/HIVE-9748
             Project: Hive
          Issue Type: Bug
          Components: Metastore
    Affects Versions: 1.0.0
            Reporter: Gopal V


Metastore Direct SQL throws a SQL Exception 

{code}
2015-02-21 00:29:00,238 WARN  [pool-3-thread-10]: metastore.ObjectStore (ObjectStore.java:handleDirectSqlError(2400)) - Direct SQL failed
MetaException(message:See previous errors; Error executing SQL query "select count("COLUMN_NAME") from "PART_COL_STATS" where "DB_NAME" = ? and "TABLE_NAME" = ?  and "COLUMN_NAME" in () and "PARTITION_NAME" in () group by "PARTITION_NAME"
".)
        at org.apache.hadoop.hive.metastore.MetaStoreDirectSql.executeWithArray(MetaStoreDirectSql.java:1448)
        at org.apache.hadoop.hive.metastore.MetaStoreDirectSql.partsFoundForPartitions(MetaStoreDirectSql.java:1098)
        at org.apache.hadoop.hive.metastore.MetaStoreDirectSql.aggrColStatsForPartitions(MetaStoreDirectSql.java:1081)
        at org.apache.hadoop.hive.metastore.ObjectStore$8.getSqlResult(ObjectStore.java:6100)
        at org.apache.hadoop.hive.metastore.ObjectStore$8.getSqlResult(ObjectStore.java:6096)
        at org.apache.hadoop.hive.metastore.ObjectStore$GetHelper.run(ObjectStore.java:2365)
        at org.apache.hadoop.hive.metastore.ObjectStore.get_aggr_stats_for(ObjectStore.java:6115)
{code}

The query to trigger the issue an EXPLAIN query with column + partition stats on.

{code}
 explain select count(1) from store_sales where '2014-10-01' =ss_sold_date ;
{code}



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