I saw and responded to your question on StackOverflow: http://stackoverflow.com/questions/37949678/how-can-i-convert-sqlnode-expressionnot-query-to-relnode <http://stackoverflow.com/questions/37949678/how-can-i-convert-sqlnode-expressionnot-query-to-relnode>.
> On Jun 20, 2016, at 9:17 AM, Sergey Likhoman <[email protected]> wrote: > > Hi guys, > > I recently start learning Calcite(1.8.0) and i have following use case: > transform a list of strings like "SUM(x) / SUM(y) as myRatio", "MAX(z) as > maxZ" or "CASE WHEN …” to AggCalls and use it in ReBuilder later. > So seems like i should do following: convert string -> sql node -> real node. > I converted String to SqlNode using SqlParser.parseExpression and tried > Planner.rel(sqlNode) to convert SqlNode to RelNode but no luck. Also tried to > create SqlToRelConverter myself, but cannot find out how to create validator, > catalog reader and cluster from config created with JdbcSchema. > > How can i convert SqlNode expression(not query!) to RelNode? > > Thanks in advance, > Sergey Likhoman
