HuangXingBo commented on a change in pull request #8472: [FLINK-12327][python] 
Adds support to submit Python Table API job in CliFrontend
URL: https://github.com/apache/flink/pull/8472#discussion_r285859989
 
 

 ##########
 File path: flink-dist/src/main/flink-bin/bin/flink
 ##########
 @@ -51,5 +51,20 @@ log_setting=(-Dlog.file="$log" 
-Dlog4j.configuration=file:"$FLINK_CONF_DIR"/log4
 export FLINK_ROOT_DIR
 export FLINK_CONF_DIR
 
+TABLE_JAR_PATH=`echo "$FLINK_ROOT_DIR"/opt/flink-table*.jar`
+libs=("-py " "--python " "-pym " "--py-module ")
+is_python=
+for (( i = 0; i < ${#libs[@]}; i++ )); do
+    if [[ $@ =~ ${libs[i]} ]]; then
+        is_python=1
+        break
+    fi
+done
+if [[ ${is_python} -eq 1 ]]; then
+       TABLE_JAR_PATH=`echo "$FLINK_ROOT_DIR"/opt/flink-table*.jar`
 
 Review comment:
   Yes.I have removed these code.

----------------------------------------------------------------
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

Reply via email to