Skip to content

Conversation

@waterlx
Copy link

@waterlx waterlx commented May 27, 2025

What changes were proposed in this pull request?

  1. Add Partitions related events, for the following external catalog operations: create / drop / alter / rename. A base "PartitionsEvent" is added by extending "TableEvent". One "PartitionsEvent" (and its subs) could contain the operation for one or more partitions. So it is named as "PartitionsEvent" in plural form, so are its subs.

  2. Post those events in the corresponding external catalog operations

Why are the changes needed?

The operation list extracted from Spark events are of great help for user to summarize what have been done against a db/table/function/partition, for the purpose of logging and/or auditing.
In ExternalCatalogWithListener, there are events posted against db, table and function for all registered listeners. But an operation against operation does not have its event posted.

Does this PR introduce any user-facing change?

With this change, partition related operations are posted into register listener as events

How was this patch tested?

Enrich UT and also tested on local cluster

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the SQL label May 27, 2025
@waterlx waterlx changed the title Add partition related ExternalCatalogEvent and post them in external catalog related operations Add partitions related ExternalCatalogEvent and post them in external catalog related operations May 27, 2025
@waterlx waterlx changed the title Add partitions related ExternalCatalogEvent and post them in external catalog related operations Add partitions related ExternalCatalogEvent and post them in corresponding operations May 27, 2025
@waterlx
Copy link
Author

waterlx commented May 27, 2025

@gatorsmile @dongjoon-hyun Can you help to review this PR? Thanks!

@waterlx waterlx changed the title Add partitions related ExternalCatalogEvent and post them in corresponding operations [SPARK-52326][SQL] Add partitions related ExternalCatalogEvent and post them in corresponding operations May 27, 2025
@github-actions
Copy link

github-actions bot commented Sep 5, 2025

We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!

@github-actions github-actions bot added the Stale label Sep 5, 2025
@github-actions github-actions bot closed this Sep 6, 2025
@waterlx
Copy link
Author

waterlx commented Dec 11, 2025

Trying to re-open this PR

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.

1 participant