antlr4ts-sql icon indicating copy to clipboard operation
antlr4ts-sql copied to clipboard

Support Spark & Presto Sql

Open melin opened this issue 3 years ago • 3 comments

Spark Antlr4 Files: https://github.com/apache/spark/tree/master/sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser

Presto Antlr4 file: https://github.com/prestodb/presto/blob/master/presto-parser/src/main/antlr4/com/facebook/presto/sql/parser/SqlBase.g4

melin avatar Jul 28 '22 02:07 melin

I am also interested in spark sql, presto sql too

@melin why there is only one g4 file for presto: https://github.com/prestodb/presto/blob/master/presto-parser/src/main/antlr4/com/facebook/presto/sql/parser/SqlBase.g4 ?

chengchengpei avatar Sep 27 '22 17:09 chengchengpei

Lexical and grammar combined in one file

melin avatar Sep 30 '22 00:09 melin

I would love to add Spark and Presto to this package, but I won't have time to do so over the next while. If you'd like to submit a pull request with the changes, that would be the fastest way to get this implemented. You can follow the docs on building and testing new grammars here.

mtriff avatar Sep 30 '22 17:09 mtriff