dark2momo commented on issue #3393:
URL: https://github.com/apache/paimon/issues/3393#issuecomment-2703326618

   @luowanghaoyun I tested the case in 
`org.apache.paimon.flink.PartialUpdateITCase`, and the result is [1, 4, 2, 2, 
2] , as expected. I wonder if this issue's status should be updated.
   
   ```java
       @Test
       public void testFirstValueSemantic() {
           sql(
                   "CREATE TABLE t1 (\n" +
                           "    k INT,\n" +
                           "    a INT,\n" +
                           "    b VARCHAR,\n" +
                           "    c VARCHAR,\n" +
                           "    d VARCHAR,\n" +
                           "PRIMARY KEY (k) NOT ENFORCED)\n" +
                           " WITH ('merge-engine'='aggregation', \n" +
                           "'fields.b.aggregate-function'='first_value',\n" +
                           
"'fields.c.aggregate-function'='first_non_null_value',\n" +
                           
"'fields.d.aggregate-function'='first_not_null_value',\n" +
                           "'sequence.field' = 'a'\n" +
                           ");");
   
           sql("INSERT INTO t1 VALUES (1, 4, '4', '4', '4')");
   
           sql("INSERT INTO t1 VALUES (1, 2, '2', '2', '2')");
   
           sql("CALL sys.compact('default.t1', '', '', '', 
'sink.parallelism=4')");
   
           sql("INSERT INTO t1 VALUES (1, 3, '3', '3', '3')");
   
           assertThat(sql("SELECT * FROM t1")).containsExactly(Row.of(1, 4, 
"2", "2", "2"));
       }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to