Fix hive ANALYZE when row count stats are missing#18828
Fix hive ANALYZE when row count stats are missing#18828raunaqmorarka merged 1 commit intotrinodb:masterfrom
Conversation
raunaqmorarka
left a comment
There was a problem hiding this comment.
Can we add a Hive product test which reproduces the problem before your fix ?
ANALYZE TABLE Table1 PARTITION(ds='2008-04-09', hr) COMPUTE STATISTICS NOSCAN; can be used in Hive to collect fileCount and onDiskDataSizeInBytes statistics without getting row count statistics
|
Using |
Okay, were you able to manually reproduce the problem and verify the fix ? |
|
There is even fix for Hive for this issue (https://issues.apache.org/jira/browse/HIVE-19254). I can test it with some old version of hive. |
Description
Fixes #18798
Additional context and related issues
The problem is specific to hive metastore and newer versions of HMS have fixed this https://issues.apache.org/jira/browse/HIVE-19254
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text: