[ https://issues.apache.org/jira/browse/HIVE-24928?focusedWorklogId=581853&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-581853 ]
ASF GitHub Bot logged work on HIVE-24928: ----------------------------------------- Author: ASF GitHub Bot Created on: 13/Apr/21 15:27 Start Date: 13/Apr/21 15:27 Worklog Time Spent: 10m Work Description: lcspinter commented on a change in pull request #2111: URL: https://github.com/apache/hive/pull/2111#discussion_r612552854 ########## File path: ql/src/java/org/apache/hadoop/hive/ql/parse/TaskCompiler.java ########## @@ -422,7 +422,7 @@ private String extractTableFullName(StatsTask tsk) throws SemanticException { TableSpec tableSpec = new TableSpec(table, partitions); tableScan.getConf().getTableMetadata().setTableSpec(tableSpec); - if (BasicStatsNoJobTask.canUseFooterScan(table, inputFormat)) { + if (BasicStatsNoJobTask.canUseColumnStats(table, inputFormat)) { Review comment: Right, fixed it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 581853) Time Spent: 6h 10m (was: 6h) > 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 10m > 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)