zjffdu commented on a change in pull request #3717:
URL: https://github.com/apache/zeppelin/pull/3717#discussion_r411076790
##########
File path:
flink/src/main/java/org/apache/zeppelin/flink/FlinkSqlInterrpeter.java
##########
@@ -466,34 +478,17 @@ private void callExplain(String sql, InterpreterContext
context) throws IOExcept
public void callSelect(String sql, InterpreterContext context) throws
IOException {
try {
lock.lock();
- // set parallelism from paragraph local property
- if (context.getLocalProperties().containsKey("parallelism")) {
- this.tbenv.getConfig().getConfiguration()
-
.set(ExecutionConfigOptions.TABLE_EXEC_RESOURCE_DEFAULT_PARALLELISM,
-
Integer.parseInt(context.getLocalProperties().get("parallelism")));
- }
-
// set table config from set statement until now.
- for (Map.Entry<String, String> entry : currentConfigOptions.entrySet()) {
+ Map<String, String> paragraphTableConfig =
paragraphTableConfigMap.get(context.getParagraphId());
Review comment:
We won't get null here, because method `callSelect` run after
`runSqlList` where Map is created.
----------------------------------------------------------------
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]