[ 
https://issues.apache.org/jira/browse/SPARK-13934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15197244#comment-15197244
 ] 

Yang Wang commented on SPARK-13934:
-----------------------------------

A table identifier starting with a number will work here but the one starting 
in the form of scientific notation like “1e34” will cause this problem. In 
fact, when SqlParser.parseTableIdentifier parses an identifier like "1e34abcd", 
the first token it will come across is "1e34" and it will see it as a number, 
not an valid identifier.

> SqlParser.parseTableIdentifier cannot recognize table name start with 
> scientific notation
> -----------------------------------------------------------------------------------------
>
>                 Key: SPARK-13934
>                 URL: https://issues.apache.org/jira/browse/SPARK-13934
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.6.1
>            Reporter: Yang Wang
>
> SqlParser.parseTableIdentifier cannot recognize table name start with 
> scientific notation like "1e30abcdedfg".
> This bug can be reproduced by code following:
>     val conf = new SparkConf().setAppName(s"test").setMaster("local[2]")
>     val sc = new SparkContext(conf)
>     val hc = new HiveContext(sc)
>     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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to