hequn8128 commented on a change in pull request #10017: [FLINK-14019][python]
add support for managing environment and dependencies of Python UDF in Flink
Python API
URL: https://github.com/apache/flink/pull/10017#discussion_r341001195
##########
File path: flink-python/pyflink/table/table_config.py
##########
@@ -274,6 +275,24 @@ def set_sql_dialect(self, sql_dialect):
"""
self._j_table_config.setSqlDialect(SqlDialect._to_j_sql_dialect(sql_dialect))
+ def set_python_executable(self, python_exec):
+ """
+ Set the path of the python interpreter for running the python udf
worker.
+
+ e.g. "/usr/local/bin/python3".
+
+ .. note::
+
+ The python udf worker depends on Apache Beam (version must be
2.15.0),
+ CloudPickle (version >= 1.2.2), Pip (version >= 7.1.0) and
Review comment:
Remove ClouldPickle as it is packaged in Flink, so users don't need to add
it.
I think the most important here is we should info users that python 3.5 or
higher is required.
----------------------------------------------------------------
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