Aleksandr Efimov has uploaded this change for review. ( 
https://gerrit.cloudera.org/25455


Change subject: IMPALA-15809: Support Hive 4 ACID metadata
......................................................................

IMPALA-15809: Support Hive 4 ACID metadata

Advertise Hive client capabilities and use native table and partition
write IDs. Forward write IDs and reader snapshots in transactional
alter and truncate calls, honoring hive.acid.truncate.usebase.

Process COMMIT_TXN in serial and hierarchical event processing. Join
HMS write information with tracked truncates so an empty write log does
not suppress the reload after commit. Skip missing catalog write IDs
for write-log-only commits after a catalog reset.

Testing:
- 52 focused tests on Hive 4.1.0/Java 17 and 4.2.1/Java 21, each with
  JSON and gzip; negative controls on the previous implementations.
- 16 truncate/abort cases through the shim wrapper and 8 post-truncate
  reinserts, using Hive 4.1 serial/gzip and Hive 4.2 hierarchical/JSON.
- Reproduced the write-log-only commit failure after catalog reset on
  the old code; verified the fix on both Hive versions in hierarchical
  mode, including data visibility without REFRESH.
- Runtime checks used updated FE with a retained native backend.

Change-Id: Ibc2842713f4032382d7d73fff2e4abe2dbb01855
Assisted-by: gpt-6.1-sol (Codex)
---
M fe/src/compat-apache-hive-4/java/org/apache/impala/compat/MetastoreShim.java
A 
fe/src/compat-apache-hive-4/test/org/apache/impala/compat/MetastoreShimCapabilitiesTest.java
A 
fe/src/compat-apache-hive-4/test/org/apache/impala/compat/MetastoreShimCommitTxnTest.java
A 
fe/src/compat-apache-hive-4/test/org/apache/impala/compat/MetastoreShimWriteIdTest.java
4 files changed, 929 insertions(+), 39 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/55/25455/1
--
To view, visit https://gerrit.cloudera.org/25455
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibc2842713f4032382d7d73fff2e4abe2dbb01855
Gerrit-Change-Number: 25455
Gerrit-PatchSet: 1
Gerrit-Owner: Aleksandr Efimov <[email protected]>

Reply via email to