hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Mollitor (Jira)" <>
Subject [jira] [Created] (HIVE-23054) Capture Total Byte Size in Column Statistics
Date Thu, 19 Mar 2020 13:47:00 GMT
David Mollitor created HIVE-23054:

             Summary: Capture Total Byte Size in Column Statistics
                 Key: HIVE-23054
             Project: Hive
          Issue Type: Improvement
          Components: CBO, Statistics
            Reporter: David Mollitor

Store a counter in HMS column statics for the total number of bytes (raw) in each column.

Right now, there is no good way to merge the average column length when performing an INSERT
statement into a table.  Right now, the code just selects the maximum value, however, if inserting
a single records with a long length (128 bytes) into a table that has millions of strings
with an average length of 4, the average length for the entire data set gets boosted to 128.

aggregateData.setAvgColLen(Math.max(aggregateData.getAvgColLen(), newData.getAvgColLen()));

Store the total raw size of all the data in each column.  Between the total raw size, and
the average length, one can compute the real average length when merging the exiting data
and the newly inserted data.

This message was sent by Atlassian Jira

View raw message