You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by di...@apache.org on 2021/04/27 08:15:40 UTC

[flink] branch release-1.13 updated: [hotfix][python][docs] Clarify python.files option (#15779)

This is an automated email from the ASF dual-hosted git repository.

dianfu pushed a commit to branch release-1.13
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.13 by this push:
     new 32667d6  [hotfix][python][docs] Clarify python.files option (#15779)
32667d6 is described below

commit 32667d6562096670df9cc245db4a369dfc6be6e2
Author: yiksanchan <ev...@gmail.com>
AuthorDate: Tue Apr 27 01:12:09 2021 -0700

    [hotfix][python][docs] Clarify python.files option (#15779)
---
 docs/content.zh/docs/dev/table/sqlClient.md                         | 6 +++---
 docs/content/docs/dev/table/sqlClient.md                            | 6 +++---
 .../main/java/org/apache/flink/client/cli/CliFrontendParser.java    | 2 +-
 .../src/main/java/org/apache/flink/python/PythonOptions.java        | 2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/docs/content.zh/docs/dev/table/sqlClient.md b/docs/content.zh/docs/dev/table/sqlClient.md
index 7cb85bf..e56215f 100644
--- a/docs/content.zh/docs/dev/table/sqlClient.md
+++ b/docs/content.zh/docs/dev/table/sqlClient.md
@@ -247,9 +247,9 @@ Mode "embedded" (default) submits Flink jobs from the local machine.
                                                (version >= 37.0.0). Please ensure
                                                that the specified environment meets
                                                the above requirements.
-         -pyfs,--pyFiles <pythonFiles>         Attach custom python files for job.
-                                               The standard python resource file
-                                               suffixes such as .py/.egg/.zip or
+         -pyfs,--pyFiles <pythonFiles>         Attach custom files for job.
+                                               The standard resource file suffixes
+                                               such as .py/.egg/.zip/.whl or
                                                directory are all supported. These
                                                files will be added to the PYTHONPATH
                                                of both the local client and the
diff --git a/docs/content/docs/dev/table/sqlClient.md b/docs/content/docs/dev/table/sqlClient.md
index 34ec1aa..279f667 100644
--- a/docs/content/docs/dev/table/sqlClient.md
+++ b/docs/content/docs/dev/table/sqlClient.md
@@ -253,9 +253,9 @@ Mode "embedded" (default) submits Flink jobs from the local machine.
                                                (version >= 37.0.0). Please ensure
                                                that the specified environment meets
                                                the above requirements.
-         -pyfs,--pyFiles <pythonFiles>         Attach custom python files for job.
-                                               The standard python resource file
-                                               suffixes such as .py/.egg/.zip or
+         -pyfs,--pyFiles <pythonFiles>         Attach custom files for job.
+                                               The standard resource file suffixes
+                                               such as .py/.egg/.zip/.whl or
                                                directory are all supported. These
                                                files will be added to the PYTHONPATH
                                                of both the local client and the
diff --git a/flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java b/flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java
index 8334435..f86fa16 100644
--- a/flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java
+++ b/flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java
@@ -191,7 +191,7 @@ public class CliFrontendParser {
                     "pyfs",
                     "pyFiles",
                     true,
-                    "Attach custom python files for job. The standard python resource file suffixes such as .py/.egg/.zip or directory are all supported. "
+                    "Attach custom files for job. The standard resource file suffixes such as .py/.egg/.zip/.whl or directory are all supported. "
                             + "These files will be added to the PYTHONPATH of both the local client and the remote python UDF worker. "
                             + "Files suffixed with .zip will be extracted and added to PYTHONPATH. "
                             + "Comma (',') could be used as the separator to specify multiple files "
diff --git a/flink-python/src/main/java/org/apache/flink/python/PythonOptions.java b/flink-python/src/main/java/org/apache/flink/python/PythonOptions.java
index 098a6b6..038191f 100644
--- a/flink-python/src/main/java/org/apache/flink/python/PythonOptions.java
+++ b/flink-python/src/main/java/org/apache/flink/python/PythonOptions.java
@@ -70,7 +70,7 @@ public class PythonOptions {
                     .stringType()
                     .noDefaultValue()
                     .withDescription(
-                            "Attach custom python files for job. The standard python resource file suffixes such as .py/.egg/.zip or "
+                            "Attach custom files for job. The standard resource file suffixes such as .py/.egg/.zip/.whl or "
                                     + "directory are all supported. These files will be added to the PYTHONPATH of both the local "
                                     + "client and the remote python UDF worker. Files suffixed with .zip will be extracted and added to PYTHONPATH. "
                                     + "Comma (',') could be used as the separator to specify multiple files. The option is equivalent to the command line option \"-pyfs\". ");