spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "shengli (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-5009) allCaseVersions function in SqlLexical leads to StackOverflow Exception
Date Mon, 05 Jan 2015 14:18:34 GMT

     [ https://issues.apache.org/jira/browse/SPARK-5009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

shengli updated SPARK-5009:
---------------------------
    Description: 
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)


  was:
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. 


> 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


Mime
View raw message