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

[SMALL] Fix to #20759 - Query: client eval followed by aggregate operation throws KeyNotFoundException: The given key 'EmptyProjectionMember' was not present in the dictionary. #20936

Merged
merged 1 commit into from
May 13, 2020

Conversation

maumar
Copy link
Contributor

@maumar maumar commented May 12, 2020

Problem is that when client eval happens in the projection before the aggregate operation SelectExpression projection mapping can/will be empty. However when we try to access them using GetMappedProjection we assume that we always find what we want.
Fix is to check that selectExpression.Projection is empty. Otherwise we know client eval happened and we can't translate aggregate.

Fixes #20759

…rows KeyNotFoundException: The given key 'EmptyProjectionMember' was not present in the dictionary.

Problem is that when client eval happens in the projection before the aggregate operation SelectExpression projection mapping can/will be empty. However when we try to access them using GetMappedProjection we assume that we always find what we want.
Fix is to check that selectExpression.Projection is empty. Otherwise we know client eval happened and we can't translate aggregate.

Fixes #20759
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants