LuciferYang commented on code in PR #36746:
URL: https://github.com/apache/spark/pull/36746#discussion_r887438317
##########
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/AnalysisSuite.scala:
##########
@@ -1170,13 +1170,25 @@ class AnalysisSuite extends AnalysisTest with Matchers {
|WITH t as (SELECT true c, false d)
|SELECT (t.c AND t.d) c
|FROM t
- |GROUP BY t.c
+ |GROUP BY t.c, t.d
Review Comment:
without `t.d`, the error message is
```
expression 't.d' 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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]