You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jark Wu (Jira)" <ji...@apache.org> on 2021/01/21 10:34:00 UTC

[jira] [Updated] (FLINK-21069) Configuration "parallelism.default" doesn't take effect for TableEnvironment#explainSql

     [ https://issues.apache.org/jira/browse/FLINK-21069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jark Wu updated FLINK-21069:
----------------------------
    Labels: starter  (was: )

> Configuration "parallelism.default" doesn't take effect for TableEnvironment#explainSql
> ---------------------------------------------------------------------------------------
>
>                 Key: FLINK-21069
>                 URL: https://issues.apache.org/jira/browse/FLINK-21069
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / API
>            Reporter: Jark Wu
>            Priority: Major
>              Labels: starter
>             Fix For: 1.13.0
>
>
> I tried the following test, and the printed node parallelism in json plan is not 5. 
> {code:scala}
>   @Test
>   def testExplainAndExecuteSingleSink(): Unit = {
>     val env = TableEnvironmentImpl.create(settings)
>     val conf = new Configuration();
>     conf.setInteger("parallelism.default", 5)
>     env.getConfig.addConfiguration(conf)
>     TestTableSourceSinks.createCsvTemporarySinkTable(
>       tEnv, new TableSchema(Array("first"), Array(STRING)), "MySink1")
>     println(tEnv.explainSql("insert into MySink1 select first from MyTable",
>       ExplainDetail.JSON_EXECUTION_PLAN))
>     env.executeSql("insert into MySink1 select first from MyTable")
> }
> {code}
> I think the bug is because TableEnvironemnt#explain will not invoke  {{PlannerBase#translate(modifyOperations: util.List[ModifyOperation])}} where we configure the configuration into underlying {{StreamExecutionEnvironment}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)