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


Change subject: IMPALA-15810: Handle Hive 4 RELOAD events
......................................................................

IMPALA-15810: Handle Hive 4 RELOAD events

Implement RELOAD emission and decoding in the Apache Hive 4 shim.
Unwrap messages through the configured JSON/gzip codec and decode
native Thrift objects with MessageBuilder.

Handle both Hive 4.1 single-partition messages and Hive 4.2 batch
messages. Keep the legacy CDP single-partition map contract. Only
skip a batch when all its partitions have already been refreshed.

Emit one event per partition to preserve the caller's event ID
mapping, validate returned IDs, and return the client to its pool.

Testing:
- Focused compilation and tests with Hive 4.1/Java 17 and
  Hive 4.2/Java 21, using JSON and gzip.
- Hive 3 compilation and 23 control tests.
- Regression tests verified against the previous implementation.
- Real HMS/Impala integration checks for refresh, invalidate,
  Hive 4.2 batch events, and SQL REFRESH self-event detection,
  using updated FE classes with existing native binaries.

Change-Id: I951a37581a9f50a713a853427f00051960166c61
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/catalog/events/Hive4ReloadEventTest.java
A 
fe/src/compat-apache-hive-4/test/org/apache/impala/compat/MetastoreShimReloadTest.java
M fe/src/main/java/org/apache/impala/catalog/events/MetastoreEvents.java
4 files changed, 417 insertions(+), 27 deletions(-)



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

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

Reply via email to