GitHub user hvanhovell opened a pull request:
https://github.com/apache/spark/pull/11052
[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 command, such as: ```add
jar file:///tmp/a@b/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
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/hvanhovell/spark SPARK-13157
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11052.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #11052
----
commit 5a275ecc6ddf1f42ab9da506bb80a59b70597525
Author: Herman van Hovell <[email protected]>
Date: 2016-02-03T16:19:45Z
Make sure the lexer does not swallow characters.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]