HyukjinKwon commented on code in PR #38841:
URL: https://github.com/apache/spark/pull/38841#discussion_r1035422454
##########
python/pyspark/sql/tests/connect/test_connect_basic.py:
##########
@@ -722,6 +722,19 @@ def test_write_operations(self):
ndf = self.connect.read.table("parquet_test")
self.assertEqual(set(df.collect()), set(ndf.collect()))
+ def test_agg_with_avg(self):
+ """SPARK-41325: groupby.avg()"""
+ df = (
+ self.connect.range(10)
+ .groupBy((col("id") % lit(2)).alias("moded"))
Review Comment:
Hm, actually shouldn't we always use unresolved alias? Seems like the alias
here is resolved (see
https://github.com/apache/spark/commit/0f7eaeee6445aaf05310229bdec22f6953113f2e)
cc @cloud-fan .
--
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]