paimon icon indicating copy to clipboard operation
paimon copied to clipboard

[Bug] Enable deletion vector may lead to the wrong result

Open Aitozi opened this issue 6 months ago • 2 comments

Search before asking

  • [x] I searched in the issues and found nothing similar.

Paimon version

1.2

Compute Engine

all

Minimal reproduce step

    @Test
    public void testEnableDV() {
        sql(
                "CREATE TABLE T (a INT, b INT, PRIMARY KEY (a) NOT ENFORCED) WITH ("
                        + "'changelog-producer' = 'lookup', "
                        + "'bucket' = '1')");
        sql("INSERT INTO T VALUES (1, 2), (2, 2), (3, 3)");
        sql("INSERT INTO T VALUES (1, 3)");
        sql("INSERT INTO T VALUES (1, 4)");
        sql("INSERT INTO T VALUES (1, 5)");
        sql("INSERT INTO T VALUES (1, 6)");
        sql("INSERT INTO T VALUES (1, 7)");
        sql("ALTER TABLE T SET ('deletion-vectors.enabled' = 'true')");
        List<Row> rows = sql("SELECT * FROM T");
        System.out.println(rows);
    }

The result is

[+I[1, 6], +I[2, 2], +I[3, 3], +I[1, 7]]

What doesn't meet your expectations?

.

Anything else?

No response

Are you willing to submit a PR?

  • [ ] I'm willing to submit a PR!

Aitozi avatar Jul 10 '25 15:07 Aitozi

may i task this issue

Stefanietry avatar Sep 19 '25 07:09 Stefanietry

Sure, thanks for you help

Aitozi avatar Sep 19 '25 07:09 Aitozi