Skip to content

Conversation

jycor
Copy link
Contributor

@jycor jycor commented Jan 19, 2024

Swapped out the library used in the CountDistinct aggregation function, as it would hash decimals to the same value.

Correctness: dolthub/dolt#7374

Copy link
Contributor

@max-hoffman max-hoffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems reasonable, nil in distinct seems a little different than the rest of the PR

var str string
for _, val := range value.(sql.Row) {
if val == nil {
return nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test for this case?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and/or comment confirming that any nil in a row won't contribute to distinct count

@jycor jycor merged commit 4d89379 into main Jan 19, 2024
@jycor jycor deleted the james/distinct branch January 19, 2024 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants