Ok, I figured it out. SqlNode is an interface and the actual implementation class has setABC method to replace it with another SqlNode.
Thomas On Mon, Dec 26, 2022 at 2:46 PM Thomas Wang <[email protected]> wrote: > Hi Calcite community, > > I'd like to use Apache Calcite to help me 1) parse and validate an > arbitrary SELECT statement and 2) replace the FROM clause with another > table or a subquery. > > At the moment, I can do 1) ok and I have a validated AST. What's the > appropriate way to do 2)? I checked various examples online, but since this > is not a common use case, I couldn't find anything helpful. > > Any suggestions are highly appreciated. Thanks. > > Thomas >
