GitHub user maryannxue opened a pull request: https://github.com/apache/spark/pull/21324
[SPARK-24035][SQL] SQL syntax for Pivot - fix antlr warning ## What changes were proposed in this pull request? 1. Change antlr rule to fix the warning. 2. Add PIVOT/LATERAL check in AstBuilder with a more meaningful error message. ## How was this patch tested? 1. Add a counter case in `PlanParserSuite.test("lateral view")` You can merge this pull request into a Git repository by running: $ git pull https://github.com/maryannxue/spark spark-24035-fix Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/21324.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #21324 ---- commit 5c141f09252ab2bb4b10f8ed191cbd73c3039aab Author: maryannxue <maryann.xue@...> Date: 2018-05-14T18:58:56Z [SPARK-24035] SQL syntax for Pivot (fix Antlr warning) commit ecd37927ef122a75bf87f1de16d6afc80fd0bf61 Author: maryannxue <maryann.xue@...> Date: 2018-05-14T19:00:15Z Merge remote-tracking branch 'origin/master' into spark-24035-fix ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org