Skip to content

Conversation

cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

This is a followup of #52330 . To be safe, we should keep the previous behavior that resets the AnalysisContext, in case this is the default AnalysisContext (not a fresh one created to analyze a new query) which is kind of a global state.

Why are the changes needed?

to avoid potention regressions

Does this PR introduce any user-facing change?

no

How was this patch tested?

N/A

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

No

@cloud-fan
Copy link
Contributor Author

cc @andyl-db @gengliangwang

@github-actions github-actions bot added the SQL label Sep 29, 2025
* expressions in a subquery.
*/
case class AnalysisContext(
isDefault: Boolean = false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: do we consider putting this at the end of the parameter list?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should always be set when copying an AnalysisContext, so put it at the beginning as a highlight.

@cloud-fan
Copy link
Contributor Author

thanks for the review, merging to master!

@cloud-fan cloud-fan closed this in 3c8c714 Sep 30, 2025
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.

2 participants