Commit 693716f
committed
fix: query-do executeCount() fast path bypassed with filterGroups, join, distinct, etc.
The metadata-only fast path only checked filters.length === 0 but
skipped guards for filterGroups (OR filters), aggregates, groupBy,
distinct, join, vectorSearch, setOperation, subqueryIn, and
computedColumns. This returned wrong counts for any non-trivial query
that happened to have no AND filters.
Aligns with the same fix already applied to local-executor.ts count().1 parent eb04362 commit 693716f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
697 | 697 | | |
698 | 698 | | |
699 | 699 | | |
700 | | - | |
| 700 | + | |
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
| |||
0 commit comments