paimon icon indicating copy to clipboard operation
paimon copied to clipboard

[Bug]Fix the collect distinct bug

Open neuyilan opened this issue 11 months ago • 1 comments

Purpose

Fix https://github.com/apache/paimon/issues/4999

Tests

testAggWithDistinctFirstDuplicate

API and Format

no

Documentation

no

neuyilan avatar Jan 26 '25 02:01 neuyilan

Hi @neuyilan and @zhongyujiang , I understand this bug, and currently we haven't considered the input situation. Generally speaking, the input is a single piece of data, and we even use the ARRAY function to assemble an array of individual element.

But I feel that the changes are too big, and in order to fix this bug, some difficult to understand code has been introduced.

This may be a current limitation, you can consider changing the document to clarify it.

JingsongLi avatar Mar 10 '25 05:03 JingsongLi