Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-50600][Connect][SQL] Send optimized plan during ReadyForExecution event #49236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jdesjean
Copy link
Contributor

@jdesjean jdesjean commented Dec 18, 2024

What changes were proposed in this pull request?

As part of SPARK-44145, a callback was added to track completion of analysis and optimization phase of a query. While the analyzed plan is sent during analyzed event the same is not true for the ReadyForExecution event.

This PR adds optimized plan during the ReadyForExecution event.

Why are the changes needed?

The analyzed plan can be use the track the statement type of the query being executed (insert, delete, select). Under certain conditions, the type can change between analysis and optimization. Adding the optimized plan result in more accurate statement type.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit

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

No

@jdesjean jdesjean changed the title [SPARK-50600] [SPARK-50600] Send optimize plan during ReadyForExecution event Dec 18, 2024
@jdesjean jdesjean changed the title [SPARK-50600] Send optimize plan during ReadyForExecution event [SPARK-50600][Connect][SQL] Send optimize plan during ReadyForExecution event Dec 18, 2024
@jdesjean jdesjean changed the title [SPARK-50600][Connect][SQL] Send optimize plan during ReadyForExecution event [SPARK-50600][Connect][SQL] Send optimized plan during ReadyForExecution event Dec 18, 2024
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