Re: Type Inference and Nullability set/change

2019-10-24 Thread Julian Hyde
;>> 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

Re: Type Inference and Nullability set/change

2019-10-24 Thread Dustin Freeman
is, > > > > 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 see

Re: Type Inference and Nullability set/change

2019-10-24 Thread Danny Chan
. Best, Danny Chan 在 2019年10月25日 +0800 AM10:46,Dustin Freeman ,写道: > 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

Type Inference and Nullability set/change

2019-10-24 Thread Dustin Freeman
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