Skip to content

[core] Drop global index external path with table#7819

Merged
JingsongLi merged 1 commit into
apache:masterfrom
leaves12138:drop-global-index-external-path-cleanup
May 12, 2026
Merged

[core] Drop global index external path with table#7819
JingsongLi merged 1 commit into
apache:masterfrom
leaves12138:drop-global-index-external-path-cleanup

Conversation

@leaves12138
Copy link
Copy Markdown
Contributor

Purpose

When dropping a table, Paimon already collects and deletes paths from data-file.external-paths. However, it missed global-index.external-path, so global index files could be left behind after dropTable.

Changes

  • Include GLOBAL_INDEX_EXTERNAL_PATH when collecting schema external paths during table drop.
  • Add catalog coverage verifying both data file external paths and global index external paths are removed.

Tests

  • mvn -pl paimon-core -Pfast-build -Dtest=FileSystemCatalogTest#testDropTableWithExternalPaths,CachingCatalogTest#testDropTableWithExternalPaths test
  • mvn -pl paimon-core -DskipTests spotless:check

@JingsongLi
Copy link
Copy Markdown
Contributor

+1

@JingsongLi JingsongLi merged commit 384bb63 into apache:master May 12, 2026
12 of 13 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