-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Query: Make ScalarSubqueryExpression fully immutable #26532
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-enhancement
Milestone
Comments
Also ExistExpression. InExpression with subquery. |
smitpatel
added a commit
that referenced
this issue
Dec 15, 2021
…pplied - Add an internal state to remember the mutability which is set to false after ApplyProjection is called. - Add overload of ApplyProjection which ignores shaper to create an immutable select expression to be used as subquery - Add debug check to verify that all SelectExpression are marked as immutable - Clone mapped projection of SqlExpression kind before translating it further to avoid reference sharing with projection which may be applied at later stage Resolves #26532 - all those expressions have debug check in ctor Resolves #26167 - by having more accurate flag for immutability Resolves #26104 - by cloning the projection before translating further. This issue may get resolved in other way after pending selector work if we reuse projections from subquery but regardless the change seems better to avoid reference sharing of SelectExpression objects
smitpatel
added
the
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
label
Dec 15, 2021
smitpatel
added a commit
that referenced
this issue
Dec 15, 2021
…pplied - Add an internal state to remember the mutability which is set to false after ApplyProjection is called. - Add overload of ApplyProjection which ignores shaper to create an immutable select expression to be used as subquery - Add debug check to verify that all SelectExpression are marked as immutable - Clone mapped projection of SqlExpression kind before translating it further to avoid reference sharing with projection which may be applied at later stage Resolves #26532 - all those expressions have debug check in ctor Resolves #26167 - by having more accurate flag for immutability Resolves #26104 - by cloning the projection before translating further. This issue may get resolved in other way after pending selector work if we reuse projections from subquery but regardless the change seems better to avoid reference sharing of SelectExpression objects
smitpatel
added a commit
that referenced
this issue
Dec 15, 2021
…pplied - Add an internal state to remember the mutability which is set to false after ApplyProjection is called. - Add overload of ApplyProjection which ignores shaper to create an immutable select expression to be used as subquery - Add debug check to verify that all SelectExpression are marked as immutable Resolves #26532 - all those expressions have debug check in ctor Resolves #26167 - by having more accurate flag for immutability
smitpatel
added a commit
that referenced
this issue
Jan 20, 2022
…pplied - Add an internal state to remember the mutability which is set to false after ApplyProjection is called. - Add overload of ApplyProjection which ignores shaper to create an immutable select expression to be used as subquery - Add debug check to verify that all SelectExpression are marked as immutable Resolves #26532 - all those expressions have debug check in ctor Resolves #26167 - by having more accurate flag for immutability
smitpatel
added a commit
that referenced
this issue
Jan 20, 2022
…pplied (#27011) - Add an internal state to remember the mutability which is set to false after ApplyProjection is called. - Add overload of ApplyProjection which ignores shaper to create an immutable select expression to be used as subquery - Add debug check to verify that all SelectExpression are marked as immutable Resolves #26532 - all those expressions have debug check in ctor Resolves #26167 - by having more accurate flag for immutability
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-enhancement
The subquery inside of it should be immutable object.
The text was updated successfully, but these errors were encountered: