HyukjinKwon commented on PR #36113:
URL: https://github.com/apache/spark/pull/36113#issuecomment-1097557836
@itholic seems like pandas UDF tests fail. Can you take a look please?
```
======================================================================
ERROR [0.471s]: test_invalid_args
(pyspark.sql.tests.test_pandas_udf_grouped_agg.GroupedAggPandasUDFTests)
----------------------------------------------------------------------
pyspark.sql.utils.AnalysisException: The group aggregate pandas UDF 'avg'
cannot be invoked together with as other, non-pandas aggregate functions.
JVM stacktrace:
org.apache.spark.sql.AnalysisException: The group aggregate pandas UDF 'avg'
cannot be invoked together with as other, non-pandas aggregate functions.
at
org.apache.spark.sql.errors.QueryCompilationErrors$.invalidPandasUDFPlacementError(QueryCompilationErrors.scala:[1345](https://github.com/itholic/spark/runs/6000818149?check_suite_focus=true#step:10:1345))
at
org.apache.spark.sql.execution.SparkStrategies$Aggregation$.apply(SparkStrategies.scala:579)
at
org.apache.spark.sql.catalyst.planning.QueryPlanner.$anonfun$plan$1(QueryPlanner.scala:63)
at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:486)
...
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/__w/spark/spark/python/pyspark/sql/tests/test_pandas_udf_grouped_agg.py",
line 491, in test_invalid_args
df.groupby(df.id).agg(mean_udf(df.v), mean(df.v)).collect()
AssertionError: "mixture.*aggregate function.*group aggregate pandas UDF"
does not match "The group aggregate pandas UDF 'avg' cannot be invoked together
with as other, non-pandas aggregate functions.
```
--
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]