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

Non-deterministic functions return different values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Table SQL / Planner
    • None

    Description

      Non-deterministic UDF functions is used mutiple times , the result is different.

       

      Table tm = tableEnv.sqlQuery("select name, RAND_INTEGER(10) as sample , sex from myhive_staff");
      tableEnv.registerTable("tmp", tm);
      
      
      tableEnv.sqlUpdate("insert into sinktable select * from tmp  where sample >= 8");
      
      
      }

       

      RAND_INTEGER()  function is used for `RAND_INTEGER(10) as sample`  when sink,

      which lead  to  inconsistent result.

       

       

       

      Attachments

        1. image-2021-02-05-10-23-02-616.png
          215 kB
          hehuiyuan
        2. image-2021-02-05-10-23-20-639.png
          313 kB
          hehuiyuan

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hehuiyuan hehuiyuan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: