How to parse CREATE IMMEDIATE efficiently? #4114
-
Hi! It also available only for Starbust and Oracle AFAIK It would be very helpful to point at the similar examples of the parsers which obtain keywords in the beginning of the statements as for EXECUTE IMMEDIATE Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Hey 👋 You'd need to add an entry in |
Beta Was this translation helpful? Give feedback.
Hey 👋
You'd need to add an entry in
STATEMENT_PARSERS
, which will route to a new parser that produces a newExecute
node. Or, if you don't really care about actually parsing it, you could treat it as aCommand
, e.g. by mappingEXECUTE
toTokenType.COMMAND
in Trino's Tokenizer class. Look into other statement parsers for reference.