Skip to content

Commit 51c8623

Browse files
committed
BrentOzarULTD#3189 sp_BlitzIndex hide tombstones
Don't show inactive rowgroups on columnstore indexes. Closes BrentOzarULTD#3189.
1 parent 976a44c commit 51c8623

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sp_BlitzIndex.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2994,6 +2994,7 @@ BEGIN
29942994
LEFT OUTER JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.partition_range_values prve ON prve.function_id = pf.function_id AND prve.boundary_id = p.partition_number ' ELSE N' ' END
29952995
+ N' LEFT OUTER JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.column_store_segments seg ON p.partition_id = seg.partition_id AND ic.index_column_id = seg.column_id AND rg.row_group_id = seg.segment_id
29962996
WHERE rg.object_id = @ObjectID
2997+
AND rg.state IN (1, 2, 3)
29972998
AND c.name IN ( ' + @ColumnListWithApostrophes + N')'
29982999
+ CASE WHEN @ShowPartitionRanges = 1 THEN N'
29993000
) AS y ' ELSE N' ' END + N'

0 commit comments

Comments
 (0)