dianfu commented on a change in pull request #10597: 
[FLINK-15270][python][docs] Add documentation about how to specify third-party 
dependencies via API for Python UDFs
URL: https://github.com/apache/flink/pull/10597#discussion_r358571541
 
 

 ##########
 File path: docs/dev/table/functions/udfs.md
 ##########
 @@ -211,6 +211,76 @@ table_env.register_function("add", add)
 # use the function in Python Table API
 my_table.select("add(a, b)")
 {% endhighlight %}
+
+If the python scalar function depends on other dependencies, you can specify 
the dependencies with the following table APIs or through <a href="{{ 
site.baseurl }}/ops/cli.html#usage">command line</a> directly when submit the 
job.
+
+<table class="table table-bordered">
+  <thead>
+    <tr>
+      <th class="text-left" style="width: 20%">Dependencies</th>
+      <th class="text-left">Description</th>
+    </tr>
+  </thead>
+
+  <tbody>
+    <tr>
+      <td>files</td>
+      <td>
+        <p>Adds python file dependencies which could be python files, python 
packages or local directories. They will be added to the PYTHONPATH of the 
python UDF worker.</p>
+{% highlight python %}
+table_env.add_python_file(file_path)
+{% endhighlight %}
+      </td>
+    </tr>
+    <tr>
+      <td>requirements</td>
 
 Review comment:
   what about in bold format?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to