[ https://issues.apache.org/jira/browse/FLINK-8690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16457821#comment-16457821 ]
ASF GitHub Bot commented on FLINK-8690: --------------------------------------- Github user suez1224 commented on a diff in the pull request: https://github.com/apache/flink/pull/5940#discussion_r184866337 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/nodes/CommonAggregate.scala --- @@ -49,11 +49,16 @@ trait CommonAggregate { val aggs = namedAggregates.map(_.getKey) val aggStrings = aggs.map( a => s"${a.getAggregation}(${ - if (a.getArgList.size() > 0) { + val prefix = if (a.isDistinct) { --- End diff -- I think one line should be fine here, slightly more compact IMO. val prefix = if (a.isDistinct) "DISTINCT " else "" > Update logical rule set to generate FlinkLogicalAggregate explicitly allow > distinct agg on DataStream > ----------------------------------------------------------------------------------------------------- > > Key: FLINK-8690 > URL: https://issues.apache.org/jira/browse/FLINK-8690 > Project: Flink > Issue Type: Sub-task > Reporter: Rong Rong > Assignee: Rong Rong > Priority: Major > > Currently, *FlinkLogicalAggregate / FlinkLogicalWindowAggregate* does not > allow distinct aggregate. > We are proposing to reuse distinct aggregate codegen work designed for > *FlinkLogicalOverAggregate*, to support unbounded distinct aggregation on > datastream as well. -- This message was sent by Atlassian JIRA (v7.6.3#76005)