From acace469b11fec91c28676c63e7058f13940e546 Mon Sep 17 00:00:00 2001 From: Raghav Aggarwal Date: Wed, 17 Jun 2026 12:41:12 +0530 Subject: [PATCH] HIVE-29670: Avoid overwriting read-only DB_NOTIFICATION_EVENT_ID_KEY_NAME in DbNotificationListener when processing batched partition events --- .../listener/DbNotificationListener.java | 21 +++-- .../resources/testconfiguration.properties | 1 + .../db_notification_batch_insert.q | 25 ++++++ .../llap/db_notification_batch_insert.q.out | 79 +++++++++++++++++++ 4 files changed, 118 insertions(+), 8 deletions(-) create mode 100644 ql/src/test/queries/clientpositive/db_notification_batch_insert.q create mode 100644 ql/src/test/results/clientpositive/llap/db_notification_batch_insert.q.out diff --git a/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java b/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java index fed4a71a01fa..34825412fdb6 100644 --- a/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java +++ b/hcatalog/server-extensions/src/main/java/org/apache/hive/hcatalog/listener/DbNotificationListener.java @@ -1410,10 +1410,13 @@ private void addNotificationLogBatch(List eventList, List eventList, List