You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "zhengruifeng (via GitHub)" <gi...@apache.org> on 2023/07/18 11:54:39 UTC

[GitHub] [spark] zhengruifeng commented on a diff in pull request #41948: [SPARK-44380][SQL][PYTHON] Support for Python UDTF to analyze in Python

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


##########
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:
   just to confirm, it fails even if the user-specified return type == the analyzed result.
   



-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org