You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "liyunzhang_intel (JIRA)" <ji...@apache.org> on 2017/10/01 00:38:04 UTC

[jira] [Commented] (HIVE-17634) Estimate the column stats even not retrieve columns from metastore(hive.stats.fetch.column.stats as false)

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

liyunzhang_intel commented on HIVE-17634:
-----------------------------------------

[~vgarg]: thanks for your command, i will try. Oct1-Oct8 is Chinese holiday.  Maybe will delay the patch for some time, thanks for your patience.

> Estimate the column stats even not retrieve columns from metastore(hive.stats.fetch.column.stats as false)
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-17634
>                 URL: https://issues.apache.org/jira/browse/HIVE-17634
>             Project: Hive
>          Issue Type: Bug
>            Reporter: liyunzhang_intel
>            Assignee: liyunzhang_intel
>         Attachments: HIVE-17634.1.patch, HIVE-17634.patch
>
>
> in [RelOptHiveTable#updateColStats|https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/RelOptHiveTable.java#L309], we set {{fetchColStats}},{{fetchPartStats}} as true when call {{StatsUtils.collectStatistics}}
> {code}
>    if (!hiveTblMetadata.isPartitioned()) {
>         // 2.1 Handle the case for unpartitioned table.
>         try {
>           Statistics stats = StatsUtils.collectStatistics(hiveConf, null,
>               hiveTblMetadata, hiveNonPartitionCols, nonPartColNamesThatRqrStats,
>               colStatsCached, nonPartColNamesThatRqrStats, true, true);
>       ...
> {code}
> This will cause querying columns statistic from metastore even we set  {{hive.stats.fetch.column.stats}} and {{hive.stats.fetch.partition.stats}} as false in HiveConf.  If we these two properties as false, we can not any column statistics from metastore.  Suggest to set the properties from HiveConf. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)