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/25 11:54:00 UTC

[jira] [Closed] (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 closed FLINK-21069.
---------------------------
    Resolution: Fixed

Fixed in
 - master: 0d3c785cf97e2530bf2b2cae648d34777c040cd0

> 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
>            Assignee: Nicholas Jiang
>            Priority: Major
>              Labels: pull-request-available, 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)
>     conf.setInteger("taskmanager.numberOfTaskSlots", 1)
>     env.getConfig.addConfiguration(conf)
>     TestTableSourceSinks.createCsvTemporarySinkTable(
>       env, new TableSchema(Array("first"), Array(STRING)), "MySink1")
>     TestTableSourceSinks.createPersonCsvTemporaryTable(env, "MyTable")
>     println(env.explainSql("insert into MySink1 select first from MyTable",
>       ExplainDetail.JSON_EXECUTION_PLAN))
> }
> {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)