You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/01/06 10:50:34 UTC
[jira] [Commented] (SPARK-5009) allCaseVersions function in
SqlLexical leads to StackOverflow Exception
[ https://issues.apache.org/jira/browse/SPARK-5009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14265914#comment-14265914 ]
Apache Spark commented on SPARK-5009:
-------------------------------------
User 'OopsOutOfMemory' has created a pull request for this issue:
https://github.com/apache/spark/pull/3909
> allCaseVersions function in SqlLexical leads to StackOverflow Exception
> -------------------------------------------------------------------------
>
> Key: SPARK-5009
> URL: https://issues.apache.org/jira/browse/SPARK-5009
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.1.1, 1.2.0
> Reporter: shengli
> Fix For: 1.3.0, 1.2.1
>
> Original Estimate: 96h
> Remaining Estimate: 96h
>
> Recently I found a bug when I add new feature in SqlParser. Which is :
> If I define a KeyWord that has a long name. Likeļ¼
> ```protected val ļ¼SERDEPROPERTIES = Keyword("SERDEPROPERTIES")```
> Since the all case version is implement by recursive function, so when ```implicit asParser`` function is called and the stack memory is very small, it will leads to SO Exception.
> java.lang.StackOverflowError
> at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254)
> at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254)
> at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222)
> at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254)
> at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org