You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Naveen Gangam (Jira)" <ji...@apache.org> on 2020/07/21 16:51:00 UTC
[jira] [Resolved] (HIVE-23846) Avoid unnecessary serialization and
deserialization of bitvectors
[ https://issues.apache.org/jira/browse/HIVE-23846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Naveen Gangam resolved HIVE-23846.
----------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
> Avoid unnecessary serialization and deserialization of bitvectors
> -----------------------------------------------------------------
>
> Key: HIVE-23846
> URL: https://issues.apache.org/jira/browse/HIVE-23846
> Project: Hive
> Issue Type: Bug
> Components: Standalone Metastore
> Reporter: Yu-Wen Lai
> Assignee: Yu-Wen Lai
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> In the method *getNdvEstimator* of <datatype>*ColumnStatsDataInspector*, it will call isSetBitVectors(), in which it serializes the bitvectors again when we already have deserialized bitvectors _ndvEstimator_. For example, we can see this pattern from [LongColumnStatsDataInspector|[https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/columnstats/cache/LongColumnStatsDataInspector.java#L106]].
> This method could check if the _ndvEstimator_ is set first so that it won't need to serialize and deserialize back.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)