implement

Statistic getStatistic()  in table interface should work.


@Override
public Statistic getStatistic() {
    return Statistics.of(100d,
            ImmutableList.<ImmutableBitSet>of(),
            RelCollations.createSingleton(0));
}

is a simple implementation declaring the first field to be ascending


2017-03-01 9:56 GMT+08:00 Mingmin Xu <[email protected]>:

> Hello all,
>
> I'm writing some examples to understand the execution plan(more exactly
> RelNode) of Calcite Streaming, and meet the error 'Streaming aggregation
> requires at least one monotonic expression in GROUP BY clause' with
> GROUP-BY.  Can anybody share an Java example on how to declare a column
> monotonic in a StreamableTable? And, can I disable this check rule?
>
> Thank you!
> --
> ----
> Mingmin
>

Reply via email to