UniformSQLParser
The uniformSQLParser supports both Mysql, Hive and some self defined grammar. This is an example to learn how to use antlr4 for writing SQL parser.
You can test the rule with IDEA ANTLR plugin which starts at 'root_statement'.
这是基于antlr4开发的高效SQL解析器,支持mysql和hive语法,同时还有一些自定义语法,参考这个文件可以开发自己喜欢的SQL解析器。 :)