-
- Downloads
[SPARK-13157] [SQL] Support any kind of input for SQL commands.
The ```SparkSqlLexer``` currently swallows characters which have not been defined in the grammar. This causes problems with SQL commands, such as: ```add jar file:///tmp/ab/TestUDTF.jar```. In this example the `````` is swallowed. This PR adds an extra Lexer rule to handle such input, and makes a tiny modification to the ```ASTNode```. cc davies liancheng Author: Herman van Hovell <hvanhovell@questtec.nl> Closes #11052 from hvanhovell/SPARK-13157.
Showing
- sql/catalyst/src/main/antlr3/org/apache/spark/sql/catalyst/parser/SparkSqlLexer.g 4 additions, 0 deletions...tlr3/org/apache/spark/sql/catalyst/parser/SparkSqlLexer.g
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/ASTNode.scala 2 additions, 2 deletions.../scala/org/apache/spark/sql/catalyst/parser/ASTNode.scala
- sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/ASTNodeSuite.scala 38 additions, 0 deletions...a/org/apache/spark/sql/catalyst/parser/ASTNodeSuite.scala
- sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala 2 additions, 4 deletions...spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala
Please register or sign in to comment