Skip to content

How to parse CREATE IMMEDIATE efficiently? #4114

Closed Answered by georgesittas
usmanovbf asked this question in Q&A
Discussion options

You must be logged in to vote

Hey 👋

You'd need to add an entry in STATEMENT_PARSERS, which will route to a new parser that produces a new Execute node. Or, if you don't really care about actually parsing it, you could treat it as a Command, e.g. by mapping EXECUTE to TokenType.COMMAND in Trino's Tokenizer class. Look into other statement parsers for reference.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@usmanovbf
Comment options

@georgesittas
Comment options

@usmanovbf
Comment options

@usmanovbf
Comment options

@georgesittas
Comment options

Answer selected by georgesittas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants