Skip to content

HIVE-29669:EXPLAIN DDL fails on ACID tables with "Cannot find valid write ID list" when HIVE_AUTHORIZATION_ENABLED is enabled#6546

Open
ramitg254 wants to merge 1 commit into
apache:masterfrom
ramitg254:HIVE-29669
Open

HIVE-29669:EXPLAIN DDL fails on ACID tables with "Cannot find valid write ID list" when HIVE_AUTHORIZATION_ENABLED is enabled#6546
ramitg254 wants to merge 1 commit into
apache:masterfrom
ramitg254:HIVE-29669

Conversation

@ramitg254

@ramitg254 ramitg254 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

correction to use wrong conf while execution of explain ddl query for transactional tables

Why are the changes needed?

this piece of code repoints the conf under Hive.java which gets used in
List<ColumnStatisticsObj> tableColumnStatistics = Hive.get().getTableColumnStatistics(

and lacks valid transaction keys which cause this failure as querystate conf contains these keys rather than session conf so Hive.java should be repointed to querystate conf for query execution

Does this PR introduce any user-facing change?

No

How was this patch tested?

added unit test and ci results

…write ID list" when HIVE_AUTHORIZATION_ENABLED is enabled

Change-Id: I822b08acd8e3cc0c7264cc4422bddee28e57cccd
@sonarqubecloud

Copy link
Copy Markdown

@ramitg254 ramitg254 changed the title HIVE-29669:EXPLAIN DDL fails on ACID tables with "Cannot find valid w… HIVE-29669:EXPLAIN DDL fails on ACID tables with "Cannot find valid write ID list" when HIVE_AUTHORIZATION_ENABLED is enabled Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants