Hello Csaba Ringhofer, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/24894
to look at the new patch set (#2).
Change subject: IMPALA-15361: Read Hive 4 timestamp stats
......................................................................
IMPALA-15361: Read Hive 4 timestamp stats
Hive 4 reconstructs persisted TIMESTAMP statistics in the dedicated
TimestampColumnStatsData union field based on the column type,
regardless of which engine wrote them. Impala also uses
LongColumnStatsData when it writes the statistics directly.
Read NDV and null counts from both representations and keep low and high
values unset. Access Hive 4 field 8 through the metastore shim so builds
against older generated Hive APIs continue to compile.
Add unit coverage for both representations. The Hive 4 case is skipped
when the timestampStats API is unavailable.
Testing:
- Focused Java compilation with the CDP Hive 3 API
- ColumnStatsTest with the CDP Hive 3 API (Hive 4 case skipped)
- ColumnStatsTest with the Hive 4.0.1 metastore API
Change-Id: I0b99acbe65665226938b2e4ac5191063d3925426
Assisted-by: gpt-5.6-sol (OpenAI Codex)
---
M fe/src/compat-apache-hive-2/java/org/apache/impala/compat/MetastoreShim.java
M fe/src/compat-apache-hive-3/java/org/apache/impala/compat/MetastoreShim.java
M fe/src/compat-hive-3/java/org/apache/impala/compat/MetastoreShim.java
M fe/src/main/java/org/apache/impala/catalog/ColumnStats.java
A fe/src/test/java/org/apache/impala/catalog/ColumnStatsTest.java
5 files changed, 129 insertions(+), 5 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/94/24894/2
--
To view, visit http://gerrit.cloudera.org:8080/24894
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I0b99acbe65665226938b2e4ac5191063d3925426
Gerrit-Change-Number: 24894
Gerrit-PatchSet: 2
Gerrit-Owner: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>