Re: [SQL]SQLParser fails to resolve nested CASE WHEN statement with parentheses in Spark 2.x

2017-02-06 Thread Herman van Hövell tot Westerflier
Hi Stan, I have opened https://github.com/apache/spark/pull/16821 to fix this. On Mon, Feb 6, 2017 at 1:41 PM, StanZhai wrote: > Hi all, > > SQLParser fails to resolve nested CASE WHEN statement like this: > > select case when > (1) + > case when 1>0 then 1 else 0 end =

[SQL]SQLParser fails to resolve nested CASE WHEN statement with parentheses in Spark 2.x

2017-02-06 Thread StanZhai
Hi all, SQLParser fails to resolve nested CASE WHEN statement like this: select case when (1) + case when 1>0 then 1 else 0 end = 2 then 1 else 0 end from tb Exception Exception in thread "main" org.apache.spark.sql.catalyst.parser.ParseException: