Feng Zhu

Results 6 issues of Feng Zhu

As described in [CALCITE-771](https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-771), we add a rule to reuse the materialization defined as scan-project-sort.

As illustrated in [CALCITE-3514](https://issues.apache.org/jira/browse/CALCITE-3514), we need to implement `JdbcTable`'s `equals()` and `hashCode() `methods.

Details are illustrated in [CALCITE-3513](https://issues.apache.org/jira/browse/CALCITE-3513), Table function's implementation should be `NullPolicy.NONE`.

`AggVisitor` ignores to find grouping functions in default. However, for some cases we need to consider these functions. This PR adds an interface to control its beheavior, and tries for...

Calcite runtime can process null semantic. However, the null literal is not properly handled when figuring out SqlMonotonicity, as demonstrated in [CALCITE-3332](https://issues.apache.org/jira/browse/CALCITE-3332).

The issue is described in [CALCITE-3088](https://issues.apache.org/jira/browse/CALCITE-3088). This kind of query is supported, for example, the case in **agg.iq** ``` # ROLLUP on 1 column select deptno + 1, count(*) as...