skonto edited a comment on issue #25098: [SPARK-28280][SQL][PYTHON][TESTS] 
Convert and port 'group-by.sql' into UDF test base
URL: https://github.com/apache/spark/pull/25098#issuecomment-512813422
 
 
   @HyukjinKwon I updated the diff the issue I see is:
   ```
    -- !query 12
   -SELECT a + 1 + 1, COUNT(b) FROM testData GROUP BY a + 1
   +SELECT udf(a + 1 + 1), udf(COUNT(b)) FROM testData GROUP BY udf(a + 1)
    -- !query 12 schema
   -struct<((a + 1) + 1):int,count(b):bigint>
   +struct<>
    -- !query 12 output
   -3   2
   -4   2
   -5   2
   -NULL        1
   +org.apache.spark.sql.AnalysisException
   +expression 'testdata.`a`' is neither present in the group by, nor is it an 
aggregate function. Add to group by or wrap in first() (or first_value) if you 
don't care which value you get.;
    ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to