ueshin commented on code in PR #41948:
URL: https://github.com/apache/spark/pull/41948#discussion_r1267107024


##########
python/pyspark/errors/error_classes.py:
##########
@@ -268,6 +268,11 @@
       "Eval type for UDF must be <eval_type>."
     ]
   },
+  "INVALID_UDTF_BOTH_RETURN_TYPE_AND_ANALYZE_STATICMETHOD" : {
+    "message" : [
+      "The UDTF '<name>' is invalid. It has both its return type and the 
required 'analyze' static method. Please make it have one of either the return 
type or the 'analyze' static method in '<name>' and try again."

Review Comment:
   Yes, it fails when a Python UDTF has both `returnType` and `analyze` static 
method, to avoid confusions.



-- 
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]

Reply via email to