calcite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dustin Freeman <jungle.free...@gmail.com>
Subject Type Inference and Nullability set/change
Date Fri, 25 Oct 2019 02:37:08 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message