Skip to content

Conversation

@gathogojr
Copy link
Contributor

Description

Cherry-pick: Aggregate on collection property using custom methods (#3339)

Checklist (Uncheck if it is not completed)

  • Test cases added
  • Build and test with one-click build and test script passed

Additional work necessary

If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.

Repository notes

Team members can start a CI build by adding a comment with the text /AzurePipelines run to a PR. A bot may respond indicating that there is no pipeline associated with the pull request. This can be ignored if the build is triggered.

Team members should not trigger a build this way for pull requests coming from forked repositories. They should instead trigger the build manually by setting the "branch" to refs/pull/{prId}/merge where {prId} is the ID of the PR.

…ds (OData#3339)

* Fixes OData#3329: aggregate on collection proprety using custom methods
{
var argument = EdmCoreModel.GetCollection(EdmCoreModel.Instance.GetDate(/*isNullable*/false));
var existingCustomFunctionSignature = new FunctionSignatureWithReturnType(argument, argument);
CustomUriFunctions.AddCustomUriFunction(customFunctionName, existingCustomFunctionSignature);
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this can pass the compile. See my PR.

{
var argument = EdmCoreModel.GetCollection(EdmCoreModel.Instance.GetDate(/*isNullable*/false));
var existingCustomFunctionSignature = new FunctionSignatureWithReturnType(argument, argument);
CustomUriFunctions.AddCustomUriFunction(customFunctionName, existingCustomFunctionSignature);
Copy link
Member

Choose a reason for hiding this comment

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

Since @gathogojr updates the Custom Uri Function, I don't this can pass the build/compile

@xuzhg
Copy link
Member

xuzhg commented Oct 23, 2025

@gathogojr I didn't realize that you have this cherry pick. I also create a PR to cherry pick with some changes since the CustomUriFunction register has changed in dev-9.x. If you want to update your PR, please close my PR. Otherwise, please take a look my PR and move that forward. Thanks.

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.

2 participants