Skip to content

[hive] Populate partition done status from metastore events - #8866

Merged
JingsongLi merged 1 commit into
apache:masterfrom
Zouxxyy:fix-hive-partitions-done-status
Jul 28, 2026
Merged

[hive] Populate partition done status from metastore events#8866
JingsongLi merged 1 commit into
apache:masterfrom
Zouxxyy:fix-hive-partitions-done-status

Conversation

@Zouxxyy

@Zouxxyy Zouxxyy commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Purpose

Populate the done field returned by HiveCatalog.listPartitions when partition.mark-done-action includes mark-event.

The Hive catalog already marks partitions with Hive's LOAD_DONE event, but listing partitions always returned done=false. This change reads the event from HMS for metastore-partitioned tables and preserves existing partition statistics, audit fields, and options.

Tests

  • Added HiveCatalogTest#testListPartitionsWithDoneStatus.
  • mvn -pl paimon-hive/paimon-hive-catalog spotless:check -ntp
  • Manual Flink 1.20 to Spark 3.5 E2E: Spark read done=true from the $partitions system table.

@JingsongLi JingsongLi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@JingsongLi
JingsongLi merged commit 0e3f446 into apache:master Jul 28, 2026
13 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants