OData / OData/AspNetCoreOData

Documentation on implementing NoGroupByAggregationWrapper in $apply

Open
#183 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
505
Forks
186
PR merge metrics
No merged PRs in 30d

Description

I have a specific querable class that implements IQuerable. I am getting error on executing $apply query:

System.NotSupportedException
HResult=0x80131515
Message=The expression 'new NoGroupByAggregationWrapper() {Container = new LastInChain() {Name = "TotalSum", Value = Convert({from Order $it in Convert([$it], IEnumerable1) select [$it].Balance=> Sum()}, Object)}}' (type: System.Linq.Expressions.MemberInitExpression) is not supported by this LINQ provider. Source=Remotion.Linq StackTrace: at Remotion.Linq.Parsing.ThrowingExpressionVisitor.VisitUnhandledItem[TItem,TResult](TItem unhandledItem, String visitMethod, Func2 baseBehavior)
at Remotion.Linq.Parsing.ThrowingExpressionVisitor.VisitMemberInit(MemberInitExpression expression)
at System.Linq.Expressions.MemberInitExpression.Accept(ExpressionVisitor visitor)
at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node)
at Remotion.Linq.Parsing.ThrowingExpressionVisitor.Visit(Expression expression)

I want to know how to implement NoGroupByAggregationWrapper in my linq query provider

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the custom IQuerable implementation that executes the $apply query and inspect how it handles the NoGroupByAggregationWrapper MemberInitExpression. Review the Remotion.Linq expression visitor failure shown in the stack trace. Done means documenting the required provider behavior or implementation guidance, but the issue names no files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.