lszskye opened a new pull request, #7652:
URL: https://github.com/apache/paimon/pull/7652
### Purpose
Fix a bug in `FieldListaggAgg.agg()` where the distinct deduplication logic
incorrectly uses substring matching (`BinaryString.contains()`) instead of
exact token matching, causing valid values to be silently dropped.
For example, with delimiter `,`:
- accumulator = `"abc,def,asd"`
- inputField = `"ab,xy"`
- Token `"ab"` is incorrectly skipped because `"abc,def,asd".contains("ab")`
returns `true`
- Result: `"abc,def,asd,xy"` (missing `"ab"`)
- Expected: `"abc,def,asd,ab,xy"`
### Tests
testFieldListAggDistinctShouldNotMatchSubstring
testFieldListAggDistinctSubstringWithCustomDelimiter
--
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]