Re: Extending SqlValidatorImpl with custom nodes

2023-04-17 Thread LakeShen
Hi Jonathan, In my opinion, I think SqlCreate or SqlDrop doesn't need pass it to the validator. When create table or drop table sql was parsed to SqlNode(SqlCreate Or SqlDrop),firstly you should determine what type of SqlNode it is and then use the appropriate Handler to handle your DDL

Extending SqlValidatorImpl with custom nodes

2023-04-17 Thread Jonathan Sternberg
Hi, When attempting to implement new nodes, such as create table or drop table, and utilize the sql validator, what's the suggested manner for implementation? I see SqlValidatorImpl is the default implementation of the validator, but I don't see a way to add new node types to the validator. When