Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22696#discussion_r224485161
  
    --- Diff: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/PlanParserSuite.scala
 ---
    @@ -108,7 +108,7 @@ class PlanParserSuite extends AnalysisTest {
         assertEqual("select a, b from db.c where x < 1", table("db", 
"c").where('x < 1).select('a, 'b))
         assertEqual(
           "select a, b from db.c having x < 1",
    -      table("db", "c").select('a, 'b).where('x < 1))
    +      table("db", "c").groupBy()('a, 'b).where('x < 1))
    --- End diff --
    
    Yes this query is invalid.
    
    Note that this is parser suite. A lot of test cases in this suite are using 
invalid queries.


---

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

Reply via email to