Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hw_syl_cyh committed Nov 4, 2024
2 parents 0371d6d + 4630749 commit cef7920
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ public static void executeSqlFileContent(String script, StreamTableEnvironment t
System.out.println("There's no INSERT INTO statement, the program will terminate");
}

// try get k8s cluster name
String k8sClusterID = conf.getString("kubernetes.cluster-id", "");
env.execute(k8sClusterID.isEmpty() ? null : k8sClusterID);
}

public static List<String> parseStatements(String script) {
Expand Down

0 comments on commit cef7920

Please sign in to comment.