Skip to content

Conversation

hazefully
Copy link

This PR prepares for fixing the issue in #3559 adds a new Value to Cascades,ConstantArrayDistinctValue, which can be used to wrap an underlying constant array value to remove duplicates from the underlying array during evaluation. The purpose of this new value is to use it to wrap in-lists used in InJoin, InUnion and FlatMap plans to avoid duplicate records if the in-list contains duplicate values.

A new function constant_array_distinct is added to the SQL layer that allows users to make use of the same functionality in their queries.

@hazefully hazefully force-pushed the prepare-for-fixing-in-duplicates branch from 395099c to 55f5868 Compare August 27, 2025 12:57
@hazefully hazefully added the enhancement New feature or request label Aug 27, 2025
@hazefully hazefully changed the title Add new wrapper Value for removing duplicates from constant array values Add new wrapper value for removing duplicates from constant array values Aug 27, 2025
@hazefully hazefully force-pushed the prepare-for-fixing-in-duplicates branch from 55f5868 to 7aabcbc Compare August 28, 2025 10:22
This adds a new value, ConstantArrayDistinctValue, which can be used to
wrap an underlying constant array value to remove duplicates from the
underlying array during evaluation.

The purpose of this new value is to use it to wrap in-lists used in
InJoin, InUnion and FlatMap plans to avoid duplicate records if the
in-list contains duplicate values.
@hazefully hazefully force-pushed the prepare-for-fixing-in-duplicates branch from 7aabcbc to 781971a Compare August 28, 2025 10:25
@hazefully hazefully requested a review from normen662 August 28, 2025 11:37
@hazefully hazefully marked this pull request as ready for review August 28, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant