hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gopal V (JIRA)" <>
Subject [jira] [Created] (HIVE-9748) MetastoreDirectSql fails for zero partition queries
Date Sat, 21 Feb 2015 08:34:11 GMT
Gopal V created HIVE-9748:

             Summary: MetastoreDirectSql fails for zero partition queries
                 Key: HIVE-9748
             Project: Hive
          Issue Type: Bug
          Components: Metastore
    Affects Versions: 1.0.0
            Reporter: Gopal V

Metastore Direct SQL throws a SQL Exception 

2015-02-21 00:29:00,238 WARN  [pool-3-thread-10]: metastore.ObjectStore (
- 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
        at org.apache.hadoop.hive.metastore.MetaStoreDirectSql.executeWithArray(
        at org.apache.hadoop.hive.metastore.MetaStoreDirectSql.partsFoundForPartitions(
        at org.apache.hadoop.hive.metastore.MetaStoreDirectSql.aggrColStatsForPartitions(
        at org.apache.hadoop.hive.metastore.ObjectStore$8.getSqlResult(
        at org.apache.hadoop.hive.metastore.ObjectStore$8.getSqlResult(
        at org.apache.hadoop.hive.metastore.ObjectStore$
        at org.apache.hadoop.hive.metastore.ObjectStore.get_aggr_stats_for(

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

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

This message was sent by Atlassian JIRA

View raw message