paimon
paimon copied to clipboard
[Bug]Fix the collect distinct bug
Purpose
Fix https://github.com/apache/paimon/issues/4999
Tests
testAggWithDistinctFirstDuplicate
API and Format
no
Documentation
no
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.