aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorNong Li <nong@databricks.com>2015-12-29 18:47:41 -0800
committerReynold Xin <rxin@databricks.com>2015-12-29 18:47:41 -0800
commitb600bccf41a7b1958e33d8301a19214e6517e388 (patch)
tree93a01d5b6a39d2c2506c5581e6174ab9ffa8ba6d /project
parent270a659584b6c1c304a9f9a331c56287672e00b0 (diff)
downloadspark-b600bccf41a7b1958e33d8301a19214e6517e388.tar.gz
spark-b600bccf41a7b1958e33d8301a19214e6517e388.tar.bz2
spark-b600bccf41a7b1958e33d8301a19214e6517e388.zip
[SPARK-12362][SQL][WIP] Inline Hive Parser
This is a WIP. The PR has been taken over from nongli (see https://github.com/apache/spark/pull/10420). I have removed some additional dead code, and fixed a few issues which were caused by the fact that the inlined Hive parser is newer than the Hive parser we currently use in Spark. I am submitting this PR in order to get some feedback and testing done. There is quite a bit of work to do: - [ ] Get it to pass jenkins build/test. - [ ] Aknowledge Hive-project for using their parser. - [ ] Refactorings between HiveQl and the java classes. - [ ] Create our own ASTNode and integrate the current implicit extentions. - [ ] Move remaining ```SemanticAnalyzer``` and ```ParseUtils``` functionality to ```HiveQl```. - [ ] Removing Hive dependencies from the parser. This will require some edits in the grammar files. - [ ] Introduce our own context which needs to contain a ```TokenRewriteStream```. - [ ] Add ```useSQL11ReservedKeywordsForIdentifier``` and ```allowQuotedId``` to the catalyst or sql configuration. - [ ] Remove ```HiveConf``` from grammar files &HiveQl, and pass in our own configuration. - [ ] Moving the parser into sql/core. cc nongli rxin Author: Herman van Hovell <hvanhovell@questtec.nl> Author: Nong Li <nong@databricks.com> Author: Nong Li <nongli@gmail.com> Closes #10509 from hvanhovell/SPARK-12362.
Diffstat (limited to 'project')
-rw-r--r--project/SparkBuild.scala2
-rw-r--r--project/plugins.sbt4
2 files changed, 5 insertions, 1 deletions
diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala
index c3d53f835f..df21d3eb63 100644
--- a/project/SparkBuild.scala
+++ b/project/SparkBuild.scala
@@ -415,7 +415,7 @@ object Hive {
// in order to generate golden files. This is only required for developers who are adding new
// new query tests.
fullClasspath in Test := (fullClasspath in Test).value.filterNot { f => f.toString.contains("jcl-over") }
- )
+ ) ++ sbtantlr.SbtAntlrPlugin.antlrSettings
}
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 5e23224cf8..f172dc9c1f 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -4,6 +4,8 @@ resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/release
resolvers += "sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/"
+resolvers += "stefri" at "http://stefri.github.io/repo/releases"
+
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.2.0")
@@ -24,6 +26,8 @@ addSbtPlugin("com.cavorite" % "sbt-avro" % "0.3.2")
addSbtPlugin("io.spray" % "sbt-revolver" % "0.7.2")
+addSbtPlugin("com.github.stefri" % "sbt-antlr" % "0.5.3")
+
libraryDependencies += "org.ow2.asm" % "asm" % "5.0.3"
libraryDependencies += "org.ow2.asm" % "asm-commons" % "5.0.3"