HyukjinKwon commented on a change in pull request #35615:
URL: https://github.com/apache/spark/pull/35615#discussion_r812476068
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/IntegratedUDFTestUtils.scala
##########
@@ -69,6 +70,15 @@ import org.apache.spark.sql.types.{DataType, StringType}
* df.select(expr("udf_name(id)")
* df.select(pandasTestUDF(df("id")))
* }}}
+ *
+ * For Grouped Aggregate Pandas UDF, it defines an UDF that calculate the
count using pandas.
+ * UDF returns the count of given column, so the input and output length could
be different.
+ *
+ * To register Grouped Aggregate Pandas UDF in SQL:
+ * {{{
+ * val groupedAggPandasTestUDF = TestGroupedAggPandasUDF(name = "udf_name")
+ * registerTestUDF(groupedAggPandasTestUDF, spark)
Review comment:
Can we add an example to use it in SQL too?
--
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]