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

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

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

Shang Yuanchun (Jira)
Jark Wu created FLINK-14293:
-------------------------------

             Summary: 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


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)