Skip to content

fix: distinct cache counting bug#26332

Merged
hiltontj merged 2 commits intomainfrom
hiltontj/distinct-cache-where-bug
Apr 25, 2025
Merged

fix: distinct cache counting bug#26332
hiltontj merged 2 commits intomainfrom
hiltontj/distinct-cache-where-bug

Conversation

@hiltontj
Copy link
Copy Markdown
Contributor

Closes #26318

Includes and fixes the reproducer for #26318 originally added in cf79b28

The distinct cache was not counting the number of results properly when a projection on one column was used in conjunction with a WHERE predicate on another column.

Fixed an issue where the distinct cache was not counting rows correctly
for scenarios where a projection and predicate were used in conjunction
@hiltontj hiltontj added the v3 label Apr 25, 2025
@hiltontj hiltontj requested a review from a team April 25, 2025 19:38
@hiltontj hiltontj self-assigned this Apr 25, 2025
@hiltontj hiltontj merged commit d30f266 into main Apr 25, 2025
12 checks passed
@hiltontj hiltontj deleted the hiltontj/distinct-cache-where-bug branch April 25, 2025 20:40
hiltontj added a commit that referenced this pull request May 2, 2025
* test: reproducer for #26318

* fix: distinct cache counting bug

Fixed an issue where the distinct cache was not counting rows correctly
for scenarios where a projection and predicate were used in conjunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Distinct Value Cache error when using WHERE clause

2 participants