dianfu commented on a change in pull request #10907: [FLINK-15675][python] Add
exception and documentation that Python UDF is not supported for Flink Planner
under batch mode
URL: https://github.com/apache/flink/pull/10907#discussion_r368357419
##########
File path: flink-python/pyflink/table/table_environment.py
##########
@@ -743,6 +743,8 @@ def register_function(self, name, function):
:param function: The python user-defined function to register.
:type function: pyflink.table.udf.UserDefinedFunctionWrapper
"""
+ if not self._is_blink_planner and isinstance(self,
BatchTableEnvironment):
+ raise Exception("Python UDF is not supported for Flink Planner
under batch mode!")
Review comment:
ditto
----------------------------------------------------------------
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