Skip to content

[SPARK-58767][SQL]. Fixing the canonicalization of TableCacheQueryStageExec,… - #58003

Open
ahshahid wants to merge 2 commits into
apache:masterfrom
ahshahid:SPARK-58767
Open

[SPARK-58767][SQL]. Fixing the canonicalization of TableCacheQueryStageExec,…#58003
ahshahid wants to merge 2 commits into
apache:masterfrom
ahshahid:SPARK-58767

Conversation

@ahshahid

Copy link
Copy Markdown
Contributor

… which otherwise prevents re-use of exchange for in memory cached plans

What changes were proposed in this pull request?

The canonicalization of TableCacheQueryStageExec uses the default, instead of the original InMemoryTableScanExec, as result two TableCacheQueryStageExec which hold canonically same InMemoryTableScanExec , do not match

Why are the changes needed?

Affects performance as it prevents re-use of exchange.

Does this PR introduce any user-facing change?

No

How was this patch tested?

added bug test. will add some more tests.

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

No

… which otherwise prevents re-use of exchange for in memory cached plans
@ahshahid ahshahid changed the title [WIP][SQL] [SPARK-58767][SQL]. Fixing the canonicalization of TableCacheQueryStageExec,… [SPARK-58767][SQL]. Fixing the canonicalization of TableCacheQueryStageExec,… Aug 14, 2026
@ahshahid
ahshahid marked this pull request as draft August 14, 2026 23:33
@ahshahid
ahshahid marked this pull request as ready for review August 15, 2026 00:41
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