You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "jamie12221 (Jira)" <ji...@apache.org> on 2020/02/07 05:42:00 UTC

[jira] [Created] (CALCITE-3777) org.apache.calcite.rel.InvalidRelException: aggregation AVG not supported

jamie12221 created CALCITE-3777:
-----------------------------------

             Summary: org.apache.calcite.rel.InvalidRelException: aggregation AVG not supported
                 Key: CALCITE-3777
                 URL: https://issues.apache.org/jira/browse/CALCITE-3777
             Project: Calcite
          Issue Type: Bug
          Components: core
    Affects Versions: 1.21.0
            Reporter: jamie12221


for RelNode:

 
{code:java}
LogicalAggregate(group=[{}], sm=[COUNT()], EXPR$1=[SUM($0)], EXPR$2=[AVG($0)])
  LogicalProject(id=[$0])
    LogicalFilter(condition=[>=($0, 0)])
      LogicalTableScan(table=[[db1, travelrecord]])
{code}
1.org.apache.calcite.interpreter.Interpreter can not run it.

2. LogicalAggregate(group=[{}], sm=[COUNT()], EXPR$1=[SUM($0)], EXPR$2=[AVG($0)]) cannot be applied EnumerableAggregateRule 

3. RelRunners.run is ok

4.How can I run RelNode without using the calculteconnectionimpl?

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)