Skip to content

Commit fc53c10

Browse files
authored
Merge pull request #3192 from BrentOzarULTD/3189_sp_BlitzIndex_hide_tombstones
#3189 sp_BlitzIndex hide tombstones
2 parents 976a44c + 51c8623 commit fc53c10

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)