Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21720#discussion_r200830672
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
 ---
    @@ -515,13 +515,33 @@ class Analyzer(
                     s"Aggregate expression required for pivot, found '$e'")
    --- End diff --
    
    Add a test case for this exception?
    ```SQL
    SELECT * FROM (
      SELECT year, course, earnings FROM courseSales
    )
    PIVOT (
      sum(earnings), year
      FOR course IN ('dotNET', 'Java')
    )
    ```


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to