Search before asking
Paimon version
master
1.0
0.9
0.8
Compute Engine
none
Minimal reproduce step
- create table with collect agg and distinct field
CREATE TABLE test_collect(
id INT PRIMARY KEY NOT ENFORCED,
f0 ARRAY<STRING>
) WITH (
'merge-engine' = 'aggregation',
'fields.f0.aggregate-function' = 'collect',
'fields.f0.distinct' = 'true'
)
- insert values
INSERT INTO test_collect VALUES (1, ARRAY['A', 'B', 'A', 'A']);
- query the results.
SELECT * FROM test_collect
the result is as follows, it does not meet expectations
1, [A, B, A, A]
What doesn't meet your expectations?
Return deduplicate list value.
for above example, the result shoud be:
1, [A, B]
Anything else?
no
Are you willing to submit a PR?