You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Contains fallback translation fails when the array parameter has AsQueryable #32218
In the legacy translation mode for Contains with an array parameter source (e.g. for old SQL Server), our pattern matching fails when the parameter source is wrapped by AsQueryable. For normal cases, AsQueryable is removed by nav expansion as it's unnecessary (ParameterQueryRootExpression is already queryable); but there are certain cases where nav expansion does not visit (e.g. nested Contains, see #32217 for the full details).
As a workaround suitable for patching 8.0, we can simply recognize and unwrap AsQueryable in the Contains fallback logic.
@ajcvickers this got fixed by the same PR (#32219) as #32215; I fixed both in a single PR since fixing #32215 caused failures requiring this issue to be fixed as well.
Activity
Visit arguments in QueryableMethodNormalizingExpressionVisitor after …
Visit arguments in QueryableMethodNormalizingExpressionVisitor after …
Visit arguments in QueryableMethodNormalizingExpressionVisitor after …
Visit arguments in QueryableMethodNormalizingExpressionVisitor after …
roji commentedon Nov 9, 2023
@ajcvickers this got fixed by the same PR (#32219) as #32215; I fixed both in a single PR since fixing #32215 caused failures requiring this issue to be fixed as well.
ajcvickers commentedon Nov 9, 2023
@roji Sounds good. Let's leave them both open for now, and then close them both if/when the single PR is approved and merged for servicing.
Visit arguments in QueryableMethodNormalizingExpressionVisitor after …
Visit arguments in QueryableMethodNormalizingExpressionVisitor after …