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

Partial insert not works when complex fields reorder

    XMLWordPrintableJSON

Details

    Description

      util.tableEnv.executeSql(
        s"""
           |create table partitioned_sink (
           |  `a` INT,
           |  `b` AS `a` + 1,
           |  `c` STRING,
           |  `d` STRING,
           |  `e` DOUBLE,
           |  `f` BIGINT,
           |  `g` INT
           |) PARTITIONED BY (`c`, `d`) with (
           |  'connector' = 'values',
           |  'sink-insert-only' = 'false'
           |)
           |""".stripMargin)
      
      INSERT INTO sink (b,e,a,g,f,c,d) SELECT b,e,a,456,123,c,d FROM MyTable GROUP BY a,b,c,d,e
      

       

      Attachments

        Issue Links

          Activity

            People

              lzljs3620320 Jingsong Lee
              lzljs3620320 Jingsong Lee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: