dtenedor commented on code in PR #43204: URL: https://github.com/apache/spark/pull/43204#discussion_r1350763173
########## python/pyspark/worker.py: ########## @@ -786,6 +787,24 @@ def _remove_partition_by_exprs(self, arg: Any) -> Any: else: return arg + # Wrap the UDTF handler to call the "prepare" method if there was a non-empty "prepare_buffer" + # string returned from the "analyze" method earlier. + if len(prepare_buffer) > 0: + prev_handler = handler + + def handler_with_prepare(): + new_udtf = prev_handler() + if new_udtf.prepare is None: + raise PySparkRuntimeError( + "The 'analyze' method returned a non-empty 'prepare_buffer' string, but the " Review Comment: This part is gone now. -- 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-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org