You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (Jira)" <ji...@apache.org> on 2019/09/30 12:49:00 UTC

[jira] [Commented] (FLINK-14293) Lazy execution of queries might produce wrong results

    [ https://issues.apache.org/jira/browse/FLINK-14293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16940932#comment-16940932 ] 

Timo Walther commented on FLINK-14293:
--------------------------------------

[~xuefuz] I think you also had concerns about this behavior, right?

> Lazy execution of queries might produce wrong results
> -----------------------------------------------------
>
>                 Key: FLINK-14293
>                 URL: https://issues.apache.org/jira/browse/FLINK-14293
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>            Reporter: Jark Wu
>            Priority: Major
>
> We introduced lazy execution of queries in FLINK-13088. But maybe we should revisit it because if we have a sequence of statements like this:
> {code:java}
> tEnv.sqlUpdate("CREATE TABLE test (...) with (path = '/tmp1')");
> tEnv.sqlUpdate("INSERT INTO test SELECT ...");
> tEnv.sqlUpdate("DROP TABLE test");
> tEnv.sqlUpdate("CREATE TABLE test (...) with (path = '/tmp2')");
> tEnv.execute();
> {code}
> If we execute the create statements eagerly and the queries lazily we will end up with wrong results.



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