[ https://issues.apache.org/jira/browse/FLINK-4604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15551943#comment-15551943 ]
Timo Walther edited comment on FLINK-4604 at 10/6/16 1:36 PM: -------------------------------------------------------------- Ok, it seems that the {{AggregateReduceFunctionsRule}} does work correctly. It would be great if you could figure out why. Can you check if {{AggregateReduceFunctionsRule.matches}} is called? Maybe we have to adapt the {{RelOptRuleOperand}} condition or Calcite has a problem that needs to be reported on the Calcite mailing list. But didn't you say that {{AvgAggregate}} is called so the translation happened even though it might not be in the part of the expression string? was (Author: twalthr): Ok, it seems that the {{AggregateReduceFunctionsRule}} does work correctly. It would be great if you could figure out why. Can you check if {{AggregateReduceFunctionsRule.matches}} is called? Maybe we have to adapt the {{RelOptRuleOperand}} condition or Calcite has a problem that needs to be reported on the Calcite mailing list. > Add support for standard deviation/variance > ------------------------------------------- > > Key: FLINK-4604 > URL: https://issues.apache.org/jira/browse/FLINK-4604 > Project: Flink > Issue Type: New Feature > Components: Table API & SQL > Reporter: Timo Walther > Assignee: Anton Mushin > > Calcite's {{AggregateReduceFunctionsRule}} can convert SQL {{AVG, STDDEV_POP, > STDDEV_SAMP, VAR_POP, VAR_SAMP}} to sum/count functions. We should add, test > and document this rule. > If we also want to add this aggregates to Table API is up for discussion. -- This message was sent by Atlassian JIRA (v6.3.4#6332)