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

Jason Dere commented on HIVE-19332:
-----------------------------------

Looks like changing StatsSetupConst.areBasicStatsUptoDate() actually affects 
whether stats are actually saved to the table. Keep the original 
areBasicStatsUptoDate()/areColumnStatsUptoDate() as-is, and create another 
version used for query planning, which takes into account if the table is an 
external table.

> Disable compute.query.using.stats for external table
> ----------------------------------------------------
>
>                 Key: HIVE-19332
>                 URL: https://issues.apache.org/jira/browse/HIVE-19332
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Jason Dere
>            Assignee: Jason Dere
>            Priority: Major
>         Attachments: HIVE-19332.1.patch, HIVE-19332.2.patch, 
> HIVE-19332.3.patch, HIVE-19332.4.patch, HIVE-19332.5.patch, HIVE-19332.6.patch
>
>
> Hive can use statistics to answer queries like count(*). This can be 
> problematic on external tables where another tool might add files that Hive 
> doesn’t know about. In that case Hive will return incorrect results.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to