Repository navigation
Fix the delete bitmap description and example A of sys.internal_partitions - #10487
Open
Rudi Bruchez (rudi-bruchez) wants to merge 1 commit into
Open
Rudi Bruchez (rudi-bruchez) wants to merge 1 commit into
Rudi Bruchez (rudi-bruchez) wants to merge 1 commit into
Conversation
prmerger-automator
Bot
requested review from
William Assaf MSFT (WilliamDAssafMSFT) and
Dimitri Furman (dimitri-furman)
November 10, 2026 21:56
Contributor
|
Rudi Bruchez (@rudi-bruchez) : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. |
1 similar comment
Contributor
|
Rudi Bruchez (@rudi-bruchez) : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. |
Contributor
|
Learn Build status updates of commit 65b7c37: ✅ Validation status: passed
For more details, please refer to the build report. |
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.
What's wrong
COLUMN_STORE_DELETE_BITMAPis described with "The bitmap is for every rowgroup since partitions can have rows in multiple rowgroups", which reads as one bitmap per rowgroup. There's one delete bitmap row per partition, withrow_group_idNULL, and itsrowsvalue counts the deleted rows of all the rowgroups of the partition.p.internal_object_type_id, which doesn't exist: the column isinternal_object_type. The query fails with Msg 207, "Invalid column name 'internal_object_type_id'". It also joinssys.indexesonobject_idonly, so each internal rowset is returned once for every index of the table.Evidence
SQL Server 2025 CU10 (17.0.5035.5), Linux container, Developer edition. Fresh database; a table partitioned in two, with a clustered columnstore index and a nonclustered index, three compressed rowgroups in partition 1 and one in partition 2, then 0.1% of the rows deleted.
sys.column_store_row_groupsshows rowgroups 0, 1 and 2 in partition 1 (1,048, 1,049 and 1,048 deleted rows) and rowgroup 0 in partition 2 (1,048 deleted rows).Example A as published returns Msg 207. With
internal_object_typeand the join onobject_idonly, it returns 4 rows for these 2 rowsets; with the join onobject_idandindex_id, 2 rows.Change
Says that each columnstore index partition has one delete bitmap, shared by its compressed rowgroups (deletes in a delta store rowgroup don't go to the bitmap), and that the rows marked in it are still physically present. In example A, selects
internal_object_typeand joinssys.indexesonindex_idtoo.