alamb commented on issue #12357:
URL: https://github.com/apache/datafusion/issues/12357#issuecomment-2460926837

   Hi @mkarbo  -- DataFusion actually has its own SQL dialect that was 
implemented as a small extension to the sqlparser
   
   https://docs.rs/datafusion/latest/datafusion/sql/parser/struct.DFParser.html
   
   I think you can take a look at how DataFusion does it -- namely parse the 
token stream yourself (unless you need some token that is not defined in 
sqlparser-rs) and delegate to sqlparser-rs if it isn't your special DDL
   
   Then you have a `match` statement in front that either inteprets / runs your 
custom statement or passes to DataFusion's normal Statement


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to