fix count aggregate function (evaluate only not null fields)#453
Merged
samwillis merged 4 commits intoTanStack:mainfrom Sep 8, 2025
Merged
fix count aggregate function (evaluate only not null fields)#453samwillis merged 4 commits intoTanStack:mainfrom
samwillis merged 4 commits intoTanStack:mainfrom
Conversation
🦋 Changeset detectedLatest commit: cb976c6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
More templates
@tanstack/db
@tanstack/db-ivm
@tanstack/electric-db-collection
@tanstack/query-db-collection
@tanstack/react-db
@tanstack/solid-db
@tanstack/svelte-db
@tanstack/trailbase-db-collection
@tanstack/vue-db
commit: |
samwillis
requested changes
Aug 26, 2025
Collaborator
samwillis
left a comment
There was a problem hiding this comment.
This is great, thanks!
- It needs tests both with and without a value extractor in the main query aggregate tests in the main db package (to go along with the db-ivm test)
- we need a changeset with a brief summary off the change.
samwillis
approved these changes
Sep 8, 2025
Collaborator
samwillis
left a comment
There was a problem hiding this comment.
Sorry it's taken a little time to get to this, it's perfect. I'm merging now
Merged
Uziniii
pushed a commit
to Uziniii/db
that referenced
this pull request
Sep 19, 2025
…k#453) Co-authored-by: Sam Willis <[email protected]>
Uziniii
pushed a commit
to Uziniii/db
that referenced
this pull request
Sep 19, 2025
…k#453) Co-authored-by: Sam Willis <[email protected]>
Uziniii
pushed a commit
to Uziniii/db
that referenced
this pull request
Sep 19, 2025
…k#453) Co-authored-by: Sam Willis <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The current
countaggregate function also countsNULLvalues (unlike the SQL count).Ex.
This code below
returned
now it gives
I have also added a new test case that keep track of this behavior to prevent a future regression.