Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

cincuranet
Copy link
Contributor

Fixes #36856.

@cincuranet cincuranet marked this pull request as ready for review October 1, 2025 08:45
@cincuranet cincuranet requested a review from a team as a code owner October 1, 2025 08:45
@cincuranet cincuranet requested a review from roji October 1, 2025 08:46
@cincuranet
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@AndriySvyryd AndriySvyryd left a comment

Choose a reason for hiding this comment

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

Do you plan on porting this to GA?

@cincuranet
Copy link
Contributor Author

Yes: #36898.

Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

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

As discussed offline, we can add a DEBUG check to ensure that the shaper tree never contains a NewExpression for a ValueConverter - this would be the regression test for this. This shouldn't be too hard - we already had some validation in https://github.com/roji/efcore/blob/eb5f3905d3141dfb74dd67daed828285e483f166/src/EFCore/Query/LiftableConstantProcessor.cs#L263 (even though that's currently disabled).

See also #33517 which is referenced from that commented-out code and which is relevant to everything that's going on here (i.e. why value converters are problematic).

@cincuranet
Copy link
Contributor Author

The innerShaper (where this comes from) does not go through (at the moment) LiftableConstantProcessor. I guess we can probably plug visitor at a different spot. Is it worth it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance regression with PrimitiveCollections using a complex ValueConverter
3 participants