Skip to content

[SPARK-49982][SQL] Fix negative caching in InMemoryRelation#48486

Closed
liuzqt wants to merge 5 commits intoapache:masterfrom
liuzqt:SPARK-49982
Closed

[SPARK-49982][SQL] Fix negative caching in InMemoryRelation#48486
liuzqt wants to merge 5 commits intoapache:masterfrom
liuzqt:SPARK-49982

Conversation

@liuzqt
Copy link
Contributor

@liuzqt liuzqt commented Oct 15, 2024

What changes were proposed in this pull request?

Re-cache AQE plan upon failure.

Why are the changes needed?

When we use a cached an AQE plan, it will do cachedPlan.execute to build the RDD, which will execute all AQE stages except the result stage. If any of them failed, the failure will be cached by lazy RDD val. So the next time when we reuse that cached plan (even by a totally irrelevant caller) it will fail immediately.

We need to re-cache the AQE plan upon failure.

Does this PR introduce any user-facing change?

NO

How was this patch tested?

new UT

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

NO

@github-actions github-actions bot added the SQL label Oct 15, 2024
@HyukjinKwon
Copy link
Member

cc @maryannxue

@liuzqt liuzqt requested a review from cloud-fan October 23, 2024 20:47
@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 18f01ec Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants