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 (#5).
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. Handle Hive 4 field 8 in Hive3MetastoreShimBase so both
Apache and CDP Hive 3 shims use it without referencing the Hive 4 API.
Add unit coverage for both representations. The Hive 4 case is skipped
when the timestampStats API is unavailable.
Testing:
- Frontend build and ColumnStatsTest with Hive 4.0.1 (0 skipped)
- Frontend build and ColumnStatsTest with Apache Hive 3.1.3 (1 skipped)
- Frontend build and ColumnStatsTest with CDP Hive 3 (1 skipped)
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/main/java/org/apache/impala/catalog/ColumnStats.java
M fe/src/main/java/org/apache/impala/catalog/Hive3MetastoreShimBase.java
A fe/src/test/java/org/apache/impala/catalog/ColumnStatsTest.java
4 files changed, 123 insertions(+), 6 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/94/24894/5
--
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: 5
Gerrit-Owner: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>