From 600c0b69cab4767e8e5a6f4284777d8b9d4bd40e Mon Sep 17 00:00:00 2001 From: Herman van Hovell Date: Mon, 28 Mar 2016 12:31:12 -0700 Subject: [SPARK-13713][SQL] Migrate parser from ANTLR3 to ANTLR4 ### What changes were proposed in this pull request? The current ANTLR3 parser is quite complex to maintain and suffers from code blow-ups. This PR introduces a new parser that is based on ANTLR4. This parser is based on the [Presto's SQL parser](https://github.com/facebook/presto/blob/master/presto-parser/src/main/antlr4/com/facebook/presto/sql/parser/SqlBase.g4). The current implementation can parse and create Catalyst and SQL plans. Large parts of the HiveQl DDL and some of the DML functionality is currently missing, the plan is to add this in follow-up PRs. This PR is a work in progress, and work needs to be done in the following area's: - [x] Error handling should be improved. - [x] Documentation should be improved. - [x] Multi-Insert needs to be tested. - [ ] Naming and package locations. ### How was this patch tested? Catalyst and SQL unit tests. Author: Herman van Hovell Closes #11557 from hvanhovell/ngParser. --- pom.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pom.xml') diff --git a/pom.xml b/pom.xml index b4cfa3a598..475f0544bd 100644 --- a/pom.xml +++ b/pom.xml @@ -178,6 +178,7 @@ 1.3.9 0.9.2 3.5.2 + 4.5.2-1 ${java.home} @@ -1759,6 +1760,11 @@ antlr-runtime ${antlr.version} + + org.antlr + antlr4-runtime + ${antlr4.version} + -- cgit v1.2.3