Skip to content

[SPARK-56695][SQL][DML] Resolve Path Based Tables for both Reads and Writes#56039

Draft
andreaschat-db wants to merge 15 commits into
apache:masterfrom
andreaschat-db:dsv2TransactionPathBasedFix
Draft

[SPARK-56695][SQL][DML] Resolve Path Based Tables for both Reads and Writes#56039
andreaschat-db wants to merge 15 commits into
apache:masterfrom
andreaschat-db:dsv2TransactionPathBasedFix

Conversation

@andreaschat-db
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This PR fixes an issue where we would only correctly resolve path based tables if they were the target of transactional writes. The DataSource catalog resolution is being moved to CatalogAndIdentifier so it can by used for both the target of the transactional write as well as the any other tables read.

Why are the changes needed?

The catalog needs to be resolved correctly for all path based tables participating in a transactional write. This includes both the target as well as any other tables read. Without this fix, any scan on path-based tables would miss the configured catalog and would fall back to the session catalog.

Furthermore, in DSv2 transactions it is important to restrict all participating tables to a single catalog. This allows the single transactional catalog to track all reads and predicates that are relevant to the transaction.

Does this PR introduce any user-facing change?

Yes. Path based tables are now correctly resolved for both read and write operations.

How was this patch tested?

Added new tests.

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

Claude Sonnet 4.6.

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.

1 participant