-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(explore): Support numeric attributes in count_unique #100895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,7 +132,7 @@ function getSupportedAttributes({ | |
} | ||
|
||
if (functionName === AggregationKey.COUNT_UNIQUE) { | ||
return stringTags; | ||
return {...numberTags, ...stringTags}; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Attribute Overwrite in COUNT_UNIQUE AggregationsFor Additional Locations (1) |
||
} | ||
|
||
return numberTags; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Tag Merging Overwrites Numeric Attributes
For
COUNT_UNIQUE
aggregations, mergingstoredNumberTags
andstoredStringTags
with object spread causes string attributes to overwrite numeric ones when keys conflict. This makes numeric variants of attributes unavailable for selection, potentially breaking related functionality.