hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "liyunzhang_intel (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-17634) Estimate the column stats even not retrieve columns from metastore(hive.stats.fetch.column.stats as false)
Date Sat, 30 Sep 2017 02:55:01 GMT

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

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

[~vgarg]: there are 1243 failed/errored test(s).  Most failures like
{code}
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[bucket_map_join_spark4]

Failing for the past 1 build (Since Failed#7056 )
Took 10 sec.
Error Message

Client Execution succeeded but contained differences (error code = 1) after executing bucket_map_join_spark4.q

88c88
<             Statistics: Num rows: 10 Data size: 1880 Basic stats: COMPLETE Column stats:
NONE
---
>             Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats:
NONE
{code}
this is because now use [betterDS|https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java#L358
] not {{ds}} to estimate the data size. The data size changed from 70 to 1880.

Do you think it is ok? If you think it is ok, i will start to regenerate the *q.out file in
my local cluster.

> 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)

Mime
View raw message