Hi All,

After I translate a query (SQL text) into a RelNode Tree like this,

RelNode res = planner.getLogicalPlan(getSqlText());

What's the simplest way to do/change type inference and set nullability for
all expressions in node res?

It seems that RelNode has some type info already like below. It seems both
constants should have a data type int64, rather than int32. A conversion
there is needed. That conversion could be simplified to (const int64)1).
Anyways to let Calcite to do such changes?

bool greater_than(int64 minus((int64) PID, *(const int32) 1)*, (const
int32) 100)


Thanks,

Dustin

Reply via email to