Zhihua Deng created HIVE-29203:
----------------------------------

             Summary: get_aggr_stats_for doesn't aggregate stats when direct 
sql batch retrieve is enabled
                 Key: HIVE-29203
                 URL: https://issues.apache.org/jira/browse/HIVE-29203
             Project: Hive
          Issue Type: Bug
          Components: Standalone Metastore
            Reporter: Zhihua Deng


In case of metastore.direct.sql.batch.size > 0, and number of partition names 
or columns in get_aggr_stats_for is bigger than the 
metastore.direct.sql.batch.size, then the
AggrStats from the call get_aggr_stats_for might have un-merged stats for the 
same column, so the aggregated stats is not correct, which may make CBO 
generate an outdated execution plan.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to