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] Set analyzed on analysis failure #49383

Closed
wants to merge 3 commits into from

Conversation

jdesjean
Copy link
Contributor

@jdesjean jdesjean commented Jan 6, 2025

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 when analysis completes successfully it does not when it fail. In that case, we should fallback to the ParsedPlan.

Why are the changes needed?

The purpose of the analyze event is to track when analysis completes, as such it should also be sent on both success & failure.

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

@github-actions github-actions bot added the SQL label Jan 6, 2025
@jdesjean jdesjean changed the title [SPARK-50600] [SPARK-50600][SQL] Set analyzed on analysis failure Jan 6, 2025
@jdesjean jdesjean marked this pull request as ready for review January 6, 2025 20:55
@jdesjean jdesjean force-pushed the jdesjean/SPARK-50600 branch 2 times, most recently from 815a10c to d69efe0 Compare January 7, 2025 17:40
@jdesjean jdesjean force-pushed the jdesjean/SPARK-50600 branch from 5ef6c5c to 5863371 Compare January 8, 2025 23:33
@jdesjean jdesjean changed the title [SPARK-50600][SQL] Set analyzed on analysis failure [SPARK-50600][CONNECT][SQL] Set analyzed on analysis failure Jan 8, 2025
@jdesjean jdesjean force-pushed the jdesjean/SPARK-50600 branch 4 times, most recently from 29333e8 to 771da36 Compare January 8, 2025 23:43
@jdesjean jdesjean force-pushed the jdesjean/SPARK-50600 branch from 771da36 to 11d42f2 Compare January 8, 2025 23:44
@jdesjean jdesjean force-pushed the jdesjean/SPARK-50600 branch from 9666312 to 42aead9 Compare January 9, 2025 19:41
@jdesjean jdesjean requested a review from cloud-fan January 9, 2025 19:41
@jdesjean jdesjean force-pushed the jdesjean/SPARK-50600 branch from 42aead9 to 7a50fd3 Compare January 9, 2025 21:20
@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 68305ac Jan 10, 2025
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.

2 participants