Table of Contents

Class AzureSynapseAnalyticsSchema.NodesColumnStoreSegment

Namespace
LinqToDB.Tools.DataProvider.SqlServer.Schemas
Assembly
linq2db.Tools.dll

sys.pdw_nodes_column_store_segments (Transact-SQL)

Applies to: √ Azure Synapse Analytics √ Analytics Platform System (PDW)

Contains a row for each column in a columnstore index.


See sys.pdw_nodes_column_store_segments.

[Table(Schema = "sys", Name = "pdw_nodes_column_store_segments", IsView = true)]
public class AzureSynapseAnalyticsSchema.NodesColumnStoreSegment
Inheritance
AzureSynapseAnalyticsSchema.NodesColumnStoreSegment
Extension Methods

Properties

BaseID

Base value ID if encoding type 1 is being used. If encoding type 1 is not being used, base_id is set to 1.

[Column("base_id")]
[NotNull]
public long BaseID { get; set; }

Property Value

long

ColumnID

ID of the columnstore column.

[Column("column_id")]
[NotNull]
public int ColumnID { get; set; }

Property Value

int

EncodingType

Type of encoding used for that segment:

1 = VALUE_BASED - non-string/binary with no dictionary (similar to 4 with some internal variations)

2 = VALUE_HASH_BASED - non-string/binary column with common values in dictionary

3 = STRING_HASH_BASED - string/binary column with common values in dictionary

4 = STORE_BY_VALUE_BASED - non-string/binary with no dictionary

5 = STRING_STORE_BY_VALUE_BASED - string/binary with no dictionary

All encodings take advantage of bit-packing and run-length encoding when possible.

[Column("encoding_type")]
[NotNull]
public int EncodingType { get; set; }

Property Value

int

HasNulls

1 if the column segment has null values.

[Column("has_nulls")]
[NotNull]
public int HasNulls { get; set; }

Property Value

int

HoBTID

ID of the heap or B-tree index (hobt) for the table that has this columnstore index.

[Column("hobt_id")]
[NotNull]
public long HoBTID { get; set; }

Property Value

long

Magnitude

Magnitude if encoding type 1 is being used. If encoding type 1 is not being used, magnitude is set to 1.

[Column("magnitude")]
[NotNull]
public double Magnitude { get; set; }

Property Value

double

MaxDataID

Maximum data ID in the column segment.

[Column("max_data_id")]
[NotNull]
public long MaxDataID { get; set; }

Property Value

long

MinDataID

Minimum data ID in the column segment.

[Column("min_data_id")]
[NotNull]
public long MinDataID { get; set; }

Property Value

long

NullValue

Value used to represent nulls.

[Column("null_value")]
[NotNull]
public long NullValue { get; set; }

Property Value

long

OnDiskSize

Size of segment in bytes.

[Column("on_disk_size")]
[NotNull]
public long OnDiskSize { get; set; }

Property Value

long

PartitionID

Indicates the partition ID. Is unique within a database.

[Column("partition_id")]
[NotNull]
public long PartitionID { get; set; }

Property Value

long

PdwNodeID

Unique identifier of a Azure Synapse Analytics node.

[Column("pdw_node_id")]
[NotNull]
public int PdwNodeID { get; set; }

Property Value

int

PrimaryDictionaryID

ID of primary dictionary. 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.

[Column("primary__dictionary_id")]
[NotNull]
public int PrimaryDictionaryID { get; set; }

Property Value

int

RowCount

Number of rows in the row group.

[Column("row_count")]
[NotNull]
public int RowCount { get; set; }

Property Value

int

SecondaryDictionaryID

ID of secondary dictionary. 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.

[Column("secondary_dictionary_id")]
[NotNull]
public int SecondaryDictionaryID { get; set; }

Property Value

int

SegmentID

ID of the column segment. For backward compatibility, the column name continues to be called segment_id even though this is the rowgroup ID. You can uniquely identify a segment using <hobt_id, partition_id, column_id>, <segment_id>.

[Column("segment_id")]
[NotNull]
public int SegmentID { get; set; }

Property Value

int

Version

Version of the column segment format.

[Column("version")]
[NotNull]
public int Version { get; set; }

Property Value

int