Hi,
I'm now working on a project to translate some proprietary SQL to a Calcite
relational plan using the RelBuilder API.
I have a question about literal projections. I can do this OK:
// SELECT 123 FROM EMP
builder
.scan("EMP")
.project(builder.literal(123))
.build();
However, if I try and do "SELECT 123" without a relation, it fails with an
ArrayIndexOutOfBoundsException.
// SELECT 123
builder
.project(builder.literal(123))
.build();
Is there an extra step I need to add a fake relation, or is this a bug? I'm
happy to dig in and fix this if it is a bug, but wanted to verify first if
this expected to work or not.
Thanks,
Andy.
--
Andy Grove
Chief Architect
AgilData - Simple Streaming SQL that Scales
www.agildata.com