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)
Attachments
Issue Links
- is duplicated by
-
SPARK-4208 stack over flow error while using sqlContext.sql
-
- Resolved
-
- links to