zhangyue19921010 opened a new issue, #11255: URL: https://github.com/apache/paimon/issues/11255
### Search before asking - [x] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar. ### Paimon version Current master, `79b8ec4788e2cd8ed87b1745d5ca54aa8db0e293`. ### Compute Engine Java Table API, OpenJDK 11.0.18. ### Minimal reproduce step Create a primary-key table with `k INT`, `v STRING`, `seq BIGINT`, primary key `k`, and these options: ```text bucket=1 merge-engine=aggregation fields.v.aggregate-function=listagg fields.v.distinct=true fields.seq.aggregate-function=max ``` Write `(1, "a,a", 1L)` followed by `(1, "b", 2L)`, commit, and read the table. The result is `"a,a,b"`. The same result occurs when the two rows are committed separately and after full compaction. The regression test also covers `partial-update` with a sequence group and a custom delimiter. ### What doesn't meet your expectations? The documented distinct option deduplicates values split by the listagg delimiter, so merging these rows should produce `"a,b"`. The first input is returned unchanged, and later merges retain the original accumulator string even when it contains repeated tokens. ### Anything else? Normalize the distinct accumulator before appending unseen tokens. Preserve the existing non-distinct and empty-delimiter behavior. This concerns merging multiple rows with the same key; it does not change the singleton reducer shortcut. ### Are you willing to submit a PR? - [x] I'm willing to submit a PR! -- 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]
