You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "László Pintér (Jira)" <ji...@apache.org> on 2021/04/19 06:24:00 UTC

[jira] [Commented] (HIVE-24928) In case of non-native tables use basic statistics from HiveStorageHandler

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

László Pintér commented on HIVE-24928:
--------------------------------------

Thanks [~kgyrtkirk] [~mbod] [~pvary] for the reviews!

> In case of non-native tables use basic statistics from HiveStorageHandler
> -------------------------------------------------------------------------
>
>                 Key: HIVE-24928
>                 URL: https://issues.apache.org/jira/browse/HIVE-24928
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 4.0.0
>            Reporter: László Pintér
>            Assignee: László Pintér
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>          Time Spent: 6h 20m
>  Remaining Estimate: 0h
>
> When we are running `ANALYZE TABLE ... COMPUTE STATISTICS` or `ANALYZE TABLE ... COMPUTE STATISTICS FOR COLUMNS` all the basic statistics are collected by the BasicStatsTask class. This class tries to estimate the statistics by scanning the directory of the table. 
> In the case of non-native tables (iceberg, hbase), the table directory might contain metadata files as well, which would be counted by the BasicStatsTask when calculating basic stats. 
> Instead of having this logic, the HiveStorageHandler implementation should provide basic statistics.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)