[jira] [Created] (FLINK-13630) StreamTableEnvironment#toAppendStream without QueryConfig overrides values set on TableConfig

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-13630) StreamTableEnvironment#toAppendStream without QueryConfig overrides values set on TableConfig

Shang Yuanchun (Jira)
Dawid Wysakowicz created FLINK-13630:
----------------------------------------

             Summary: StreamTableEnvironment#toAppendStream without QueryConfig overrides values set on TableConfig
                 Key: FLINK-13630
                 URL: https://issues.apache.org/jira/browse/FLINK-13630
             Project: Flink
          Issue Type: Improvement
          Components: Table SQL / API
    Affects Versions: 1.9.0
            Reporter: Dawid Wysakowicz
            Assignee: Dawid Wysakowicz
             Fix For: 1.9.0


In a sequence like this:
{code}
tEnv.getConfig().setIdleStateRetentionTime(minRetention, maxRetention);
Table table = tEnv.fromDataStream(elements);
tEnv.toAppendStream(table, Row.class);
{code}
the call to {{toAppendStream}} will override the value set in {{tEnv.getConfig.setIdleStateRetentionTime}}. I think we should change that behavior, as we want to drop the version with explicit {{QueryConfig}} and recommend the described setup.

Thanks [~hequn8128] for pointing it out.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)