Skip to content

Conversation

@roji
Copy link
Member

@roji roji commented Apr 9, 2024

Fixes #33491

@roji roji requested review from cincuranet and maumar April 9, 2024 07:42
return translation;
}

private Expression? TranslateProjection(Expression expression, bool applyDefaultTypeMapping = true)
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: at some point I'll do a cleanup here.. Most of the time we call into RelationalSqlTranslatingExpressionVisitor expecting a SqlExpression as a result, but there are various cases where we can get a StructuralTypeShaperExpression instead (like when projecting out complex types, or in this case, where the GroupBy key translator yields a complex type). We should clean up the APIs.

@roji roji marked this pull request as draft April 9, 2024 08:15
@roji roji force-pushed the GroupByComplexType branch from 2bc8bfa to 1e73ce1 Compare April 9, 2024 12:43
@roji roji marked this pull request as ready for review April 9, 2024 13:32
@roji roji merged commit a001f62 into dotnet:main Apr 9, 2024
@roji roji deleted the GroupByComplexType branch April 9, 2024 13:32
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.

GroupBy over complex types

2 participants