GitHub user wangyang1992 opened a pull request:
https://github.com/apache/spark/pull/11762
[SPARK-13934][SQL] Fixed table name parsing
## What changes were proposed in this pull request?
val tableName = "1e34abcd"
hc.sql("select 123").registerTempTable(tableName)
hc.dropTempTable(tableName)
The last line will throw a RuntimeException.(java.lang.RuntimeException:
[1.1] failure: identifier expected)
Fix this by changing the scientific notation parser. If a scientific
notation is followed by one or more identifier char, then don't see it as a
valid token.
## How was this patch tested?
unit test is added
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/wangyang1992/spark master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11762.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 #11762
----
commit b4ea5b5025208acfa55d8cb0f57a2d36f4391653
Author: wangyang <[email protected]>
Date: 2016-03-16T12:54:38Z
Fixed table name parsing
----
---
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]