Skip to content

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

Open
andreaschat-db wants to merge 18 commits into
apache:masterfrom
andreaschat-db:dsv2TransactionPathBasedFix
Open

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

Conversation

@andreaschat-db
Copy link
Copy Markdown
Contributor

@andreaschat-db andreaschat-db commented May 21, 2026

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. The approach maintains exactly the same semantics as the Dataframe path based identifier resolution.

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.

@andreaschat-db andreaschat-db force-pushed the dsv2TransactionPathBasedFix branch from 7a0af9a to bf43ee1 Compare May 22, 2026 14:03
@andreaschat-db andreaschat-db marked this pull request as ready for review May 22, 2026 14:03
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