Skip to content

Handle NULL checks on single column bloom indexes - #10583

Merged
antekresic merged 1 commit into
mainfrom
antekresic/fix_upsert_bloom_null_values
Sep 11, 2026
Merged

antekresic merged 1 commit into
mainfrom
antekresic/fix_upsert_bloom_null_values

Conversation

@antekresic

Copy link
Copy Markdown
Member

A single column bloom index cannot filter NULL values when using NULL NOT DISTINCT, so avoid prunning batches using them.

Filters over several columns do record NULLs and keep pruning.

Fixes #10579

@antekresic antekresic added this to the v2.30.1 milestone Sep 11, 2026
@antekresic
antekresic requested a review from dbeck September 11, 2026 09:15
@antekresic antekresic self-assigned this Sep 11, 2026
@antekresic antekresic added the bug label Sep 11, 2026
@github-actions
github-actions Bot requested a review from pnthao September 11, 2026 09:15
@github-actions

Copy link
Copy Markdown

@dbeck, @pnthao: please review this pull request.

Powered by pull-review

@antekresic
antekresic force-pushed the antekresic/fix_upsert_bloom_null_values branch from 77fff12 to 9874a0e Compare September 11, 2026 09:24

@dbeck dbeck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, great find

@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.

πŸ“’ Thoughts on this report? Let us know!

Comment thread tsl/src/compression/compression_dml.c Resolved
@antekresic
antekresic force-pushed the antekresic/fix_upsert_bloom_null_values branch from 9874a0e to ff0cab4 Compare September 11, 2026 11:18
@antekresic
antekresic force-pushed the antekresic/fix_upsert_bloom_null_values branch from ff0cab4 to 1b054fd Compare September 11, 2026 12:17
@antekresic
antekresic enabled auto-merge (rebase) September 11, 2026 12:17
A single column bloom index cannot filter NULL values when using
NULL NOT DISTINCT, so avoid prunning batches using them.

Filters over several columns do record NULLs and keep pruning.
@antekresic
antekresic merged commit 6ae33e7 into main Sep 11, 2026
80 of 90 checks passed
@antekresic
antekresic deleted the antekresic/fix_upsert_bloom_null_values branch September 11, 2026 14:52
@surister surister mentioned this pull request Sep 16, 2026
surister pushed a commit that referenced this pull request Sep 17, 2026
## 2.30.1 (2026-09-17)

This release contains bug fixes since the 2.30.0 release. We recommend
that you upgrade at the next available opportunity.

**Bugfixes**
* [#10580](#10580) Fix
missing conflicts for `INSERT ... ON CONFLICT` with multiple unique
constraints
* [#10583](#10583) Fix
`NULL` conflict resolution on single-column bloom filtering
* [#10592](#10592) Fix
duplicate rows from `DeferredChunkAppend` when `LIMIT` is not pushed
down
* [#10593](#10593) Fix
`cannot cast type cstring` error in `DeferredChunkAppend` queries

**Thanks**
* @davidecentioni for reporting the problem with a LIMIT query on a
hypertable returning duplicate rows once the plan goes generic
[#10584](#10584)
* @vincentrolfs for reporting the problem of LIMIT query with enum
columns and casting
[#10590](#10590)
@timescale-automation timescale-automation added the released-2.30.1 Released in 2.30.1 label Sep 17, 2026
@timescale-automation timescale-automation added the released-2.31.0 Released in 2.31.0 label Oct 20, 2026
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.

[Bug]: Conflicting NULL row not refused with NULLS NOT DISTINCT and bloom filters in compressed DML

4 participants