[
https://issues.apache.org/jira/browse/CALCITE-6595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17933975#comment-17933975
]
Stamatis Zampetakis commented on CALCITE-6595:
----------------------------------------------
Fixed in
https://github.com/apache/calcite/commit/f325fa6cdea98e75ac59a73c34eded2350fe3379
> AggregateExpandWithinDistinctRule drops aggregateCall.collation on
> non-distinct agg
> -----------------------------------------------------------------------------------
>
> Key: CALCITE-6595
> URL: https://issues.apache.org/jira/browse/CALCITE-6595
> Project: Calcite
> Issue Type: Bug
> Reporter: Steven Talbot
> Assignee: TJ Banghart
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.38.0
>
>
> These lines should also preserve collation
> [https://github.com/apache/calcite/blame/main/core/src/main/java/org/apache/calcite/rel/rules/AggregateExpandWithinDistinctRule.java#L349-L354]
> relates to https://issues.apache.org/jira/browse/CALCITE-5846
> Test case looks much like the test for that other issue, just with a WITHIN
> GROUP (ORDER BY x)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)