zhengruifeng commented on code in PR #52637:
URL: https://github.com/apache/spark/pull/52637#discussion_r2438857016
##########
python/pyspark/sql/tests/test_udf.py:
##########
@@ -193,13 +193,14 @@ def check_nondeterministic_udf_in_aggregate(self):
df.agg(sum(udf_random_col())).collect()
def test_chained_udf(self):
- self.spark.catalog.registerFunction("double", lambda x: x + x,
IntegerType())
Review Comment:
The temp function `double` registered here can not be dropped by `DROP
TEMPORARY FUNCTION`
```
org.apache.spark.sql.AnalysisException: Cannot drop built-in function
'double'.
```
and then the temp function fails new test `test_decimal_round`, the
`DOUBLE(1.234)` in `spark.sql("SELECT DOUBLE(1.234) AS v")` cause the failure
--
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]