Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-14293

Lazy execution of queries might produce wrong results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Table SQL / Planner

    Description

      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:

      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();
      

      If we execute the create statements eagerly and the queries lazily we will end up with wrong results.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jark Jark Wu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: