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

[6.0] Fix to #24490 - Update exception message when correlated collection cannot be projected #26079

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

maumar
Copy link
Contributor

@maumar maumar commented Sep 16, 2021

Updating the message and resource string name to reflect the changes in behavior after we've improved this scenario.

Fixes #24490

@maumar maumar requested a review from smitpatel September 16, 2021 21:37
<data name="InsufficientInformationToIdentifyOuterElementOfCollectionJoin" xml:space="preserve">
<value>Unable to translate a collection subquery in a projection since the parent query doesn't project the key columns of all tables required to generate results on the client side. This can happen when trying to correlate on keyless entity or when using 'Distinct' or 'GroupBy' operations without projecting all of the key columns.</value>
<data name="InsufficientInformationToIdentifyElementOfCollectionJoin" xml:space="preserve">
<value>Unable to translate a collection subquery in a projection since either parent or the subquery doesn't project necessary information required to uniquely identify it and correctly generate results on the client side. This can happen when trying to correlate on keyless entity type. This can also happen for some cases of projection before 'Distinct' or some shapes of grouping key in case of 'GroupBy'. These should either contain all key properties of the entity that the operation is applied on, or only contain simple property access expressions.</value>
Copy link
Contributor Author

@maumar maumar Sep 16, 2021

Choose a reason for hiding this comment

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

I don't think the fwlink is necessary here. The issue should now be pretty niche and after/if we fix #26077 this will only happen for keyless entities, and the exception message length will be substantially reduced. @smitpatel thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

/cc @roji as our English language expert ;)

@maumar maumar requested a review from roji September 16, 2021 21:39
@ajcvickers ajcvickers changed the title Fix to #24490 - Update exception message when correlated collection cannot be projected [6.0] Fix to #24490 - Update exception message when correlated collection cannot be projected Sep 17, 2021
…annot be projected

Updating the message and resource string name to reflect the changes in behavior after we've improved this scenario.

Fixes #24490
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.

Update exception message when correlated collection cannot be projected
2 participants