Re: Calcite - add new field to Project via RelOptRule

2018-07-26 Thread Michael Mior
If you want transformations which actually change the output of the query, you probably just want to change the RelNode directly. RelOptRules are expected to preserve the semantics of the query so you shouldn't do things such as adding new fields or changing the collation. You can still run the opt

Calcite - add new field to Project via RelOptRule

2018-07-26 Thread Oleksandr Fedorov
Hello, There is a overall task to pushdown an expression from outer select to nested project (if it has all required dependent fields). For replace purpose were selected RelOptRule, but when I try to replace project with a newProject that has on 1 expression more - validation fails: java.lang.As