Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 60cebfa

Browse files
authored
Merge pull request #344 from srutzky/SRutzky-FixColumnStoreSegments
Fix sys.column_store_segments
2 parents b791560 + 4018c77 commit 60cebfa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/relational-databases/system-catalog-views/sys-column-store-segments-transact-sql.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "sys.column_store_segments (Transact-SQL) | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "12/30/2016"
4+
ms.date: "01/15/2018"
55
ms.prod: "sql-non-specified"
66
ms.prod_service: "database-engine"
77
ms.service: ""
@@ -43,8 +43,8 @@ Returns one row for each column segment in a columnstore index. There is one col
4343
|**encoding_type**|**int**|Type of encoding used for that segment:<br /><br /> 1 = VALUE_BASED - non-string/binary with no dictionary (very similar to 4 with some internal variations)<br /><br /> 2 = VALUE_HASH_BASED - non-string/binary column with common values in dictionary<br /><br /> 3 = STRING_HASH_BASED - string/binary column with common values in dictionary<br /><br /> 4 = STORE_BY_VALUE_BASED - non-string/binary with no dictionary<br /><br /> 5 = STRING_STORE_BY_VALUE_BASED - string/binary with no dictionary<br /><br /> All encodings take advantage of bit-packing and run-length encoding when possible.|
4444
|**row_count**|**int**|Number of rows in the row group.|
4545
|**has_nulls**|**int**|1 if the column segment has null values.|
46-
|**base_id**|**bigint**|Base value id if encoding type 1 is being used. If encoding type 1 is not being used, base_id is set to 1.|
47-
|**magnitude**|**float**|Magnitude if encoding type 1 is being used. If encoding type 1 is not being used, magnitude is set to 1.|
46+
|**base_id**|**bigint**|Base value id if encoding type 1 is being used. If encoding type 1 is not being used, base_id is set to -1.|
47+
|**magnitude**|**float**|Magnitude if encoding type 1 is being used. If encoding type 1 is not being used, magnitude is set to -1.|
4848
|**primary_dictionary_id**|**int**|A value of 0 represents the global dictionary. A value of -1 indicates that there is no global dictionary created for this column.|
4949
|**secondary_dictionary_id**|**int**|A non-zero value points to the local dictionary for this column in the current segment (i.e. the rowgroup). A value of -1 indicates that there is no local dictionary for this segment.|
5050
|**min_data_id**|**bigint**|Minimum data id in the column segment.|

0 commit comments

Comments
 (0)