viirya commented on a change in pull request #24945:
[SPARK-27893][SQL][PYTHON][FOLLOW-UP] Allow Scalar Pandas and Python UDFs can
be tested with Scala test base
URL: https://github.com/apache/spark/pull/24945#discussion_r296776475
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/IntegratedUDFTestUtils.scala
##########
@@ -40,32 +40,37 @@ import org.apache.spark.sql.types.StringType
*
* To register Scala UDF in SQL:
* {{{
- * registerTestUDF(TestScalaUDF(name = "udf_name"), spark)
+ * val scalaTestUDF = TestScalaUDF(name = "udf_name")
+ * registerTestUDF(scalaTestUDF, spark)
* }}}
*
* To register Python UDF in SQL:
* {{{
- * registerTestUDF(TestPythonUDF(name = "udf_name"), spark)
+ * val pythonTestUDF = TestScalaUDF(name = "udf_name")
+ * registerTestUDF(pythonTestUDF, spark)
* }}}
*
* To register Scalar Pandas UDF in SQL:
* {{{
- * registerTestUDF(TestScalarPandasUDF(name = "udf_name"), spark)
+ * val pandasTestUDF = TestScalaUDF(name = "udf_name")
Review comment:
`TestScalaUDF` -> `TestScalarPandasUDF`?
----------------------------------------------------------------
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]