Hi, Can you please share the testcase and/or the plan reported by optiq?
The plan can be captured either in VolcanoPlanner.findBestExp via java debug (see "Cheapest Plan:\n" [1]) or setting org.eigenbase.relopt.RelOptPlanner log level to FINE The generated java code can be captured via setting -Doptiq.debug=true. It can be useful to check if Optiq performs excessive operations at the very low level. [1]: https://github.com/apache/incubator-optiq/blob/master/core/src/main/java/org/eigenbase/relopt/volcano/VolcanoPlanner.java#L678 Vladimir
