Skip to main content
Version: 3.1.0 (Latest)

System Views

Ignite provides a number of built-in SQL views that provide information on the cluster's state and provide real-time insight into the status of its components. These views are available in the SYSTEM schema.

Getting Data

You access system views in Ignite by using SQL and selecting data from the system view like you would from any other table. For example, you can get a list of all available system views in the following way:

SELECT * FROM system.system_views

You can also use joins to combine data from multiple views. The example below returns all columns of a view that was found in the SYSTEM_VIEWS view:

SELECT svc.*
FROM system.system_view_columns svc
JOIN system.system_views sv ON svc.view_id = sv.id
WHERE sv.name = 'SYSTEM_VIEWS'

Available Views

COMPUTE_TASKS

ColumnData TypeDescription
COORDINATOR_NODE_IDSTRINGThe task's coordinator node ID.
COMPUTE_TASK_IDSTRINGThe compute task ID.
COMPUTE_TASK_STATUSSTRINGThe task status.
COMPUTE_TASK_CREATE_TIMETIMESTAMP WITH LOCAL TIME ZONEThe task creation timestamp.
COMPUTE_TASK_START_TIMETIMESTAMP WITH LOCAL TIME ZONEThe task start timestamp.
COMPUTE_TASK_FINISH_TIMETIMESTAMP WITH LOCAL TIME ZONEThe task finish timestamp.
IDSTRINGDeprecated. The compute task ID.
STATUSSTRINGDeprecated. The task status.
CREATE_TIMETIMESTAMP WITH LOCAL TIME ZONEDeprecated. The task creation timestamp.
START_TIMETIMESTAMP WITH LOCAL TIME ZONEDeprecated. The task start timestamp.
FINISH_TIMETIMESTAMP WITH LOCAL TIME ZONEDeprecated. The task finish timestamp.

GLOBAL_PARTITION_STATES

ColumnData TypeDescription
ZONE_NAMESTRINGThe name of the distribution zone the partition belongs to.
TABLE_IDINT32The ID of the table stored in the partition.
SCHEMA_NAMESTRINGThe name of the schema the table belongs to.
TABLE_NAMESTRINGThe name of the table stored in the partition.
PARTITION_IDINT32The unique identifier of the partition.
PARTITION_STATESTRINGPartition status. Possible values: AVAILABLE, DEGRADED, READ_ONLY, UNAVAILABLE. See Disaster Recovery documentation for more information.
ZONE_IDINT32Unique zone identifier.
SCHEMA_IDINT32Unique schema identifier.
STATESTRINGDeprecated. Partition status. Possible values: AVAILABLE, DEGRADED, READ_ONLY, UNAVAILABLE.

GLOBAL_ZONE_PARTITION_STATES

ColumnData TypeDescription
ZONE_NAMESTRINGName of the zone.
ZONE_IDINT32Internal identifier of the zone.
PARTITION_IDINT32Identifier of the partition.
PARTITION_STATESTRINGCurrent state of the partition. Possible values: AVAILABLE (All replicas are healthy), DEGRADED (There are healthy replicas, and they form a majority), READ_ONLY (There are healthy replicas, but they don't form a majority), UNAVAILABLE (There are no healthy replicas).

INDEXES

ColumnData TypeDescription
INDEX_IDINT32Unique index identifier.
INDEX_NAMESTRINGThe name of the index.
TABLE_IDINT32Unique table identifier.
TABLE_NAMESTRINGThe name of the table.
SCHEMA_IDINT32Unique schema identifier.
SCHEMA_NAMESTRINGThe name of the schema.
INDEX_TYPESTRINGThe type of the index. Possible values: HASH, SORTED.
IS_UNIQUE_INDEXBOOLEANIf the index is unique.
INDEX_COLUMNSSTRINGThe list of indexed columns.
INDEX_STATESTRINGCurrent status of the index. Possible values: REGISTERED (Index has been registered and is awaiting the start of building), BUILDING (Index is being built), AVAILABLE (Index is built and is ready to use), STOPPING (DROP INDEX command has been executed, index is waiting for running transactions to finish).
TYPESTRINGDeprecated. The type of the index. Possible values: HASH, SORTED.
IS_UNIQUEBOOLEANDeprecated. If the index is unique.
COLUMNSSTRINGDeprecated. The list of indexed columns.
STATUSSTRINGDeprecated. Current status of the index.

INDEX_COLUMNS

ColumnData TypeDescription
SCHEMA_IDINT32Unique schema identifier.
SCHEMA_NAMESTRINGThe name of the schema.
TABLE_IDINT32Unique table identifier.
TABLE_NAMESTRINGThe name of the table.
INDEX_IDINT32Unique index identifier.
INDEX_NAMESTRINGThe name of the index.
COLUMN_NAMESTRINGColumn name.
COLUMN_ORDINALINT32The ordinal number of the column in the index definition.
COLUMN_COLLATIONSTRINGCollation rules for the column.

LOCAL_ZONE_PARTITION_STATES

ColumnData TypeDescription
NODE_NAMESTRINGName of the node reporting the partition state.
ZONE_NAMESTRINGName of the zone.
ZONE_IDINT32Internal identifier of the zone.
ESTIMATED_ROWSINT64Approximate number of rows stored in this partition on the local node.
PARTITION_IDINT32Identifier of the partition.
PARTITION_STATESTRINGCurrent state of the local partition. Possible values: UNAVAILABLE (Partition is not yet started or is stopping), HEALTHY (Alive partition with a healthy state machine), INITIALIZING (Partition is starting right now), INSTALLING_SNAPSHOT (Partition is installing a Raft snapshot from the leader), CATCHING_UP (Partition is catching up, meaning that it's not replicated part of the log yet), BROKEN (Partition is in broken state, usually it means that its state machine threw an exception).

LOCKS

A node system view that lists the currently active locks.

ColumnData TypeDescription
OWNING_NODE_IDSTRINGThe ID of the node that owns the lock.
TRANSACTION_IDSTRINGThe ID of the transaction that created the lock.
OBJECT_IDSTRINGThe ID of the locked object.
LOCK_MODESTRINGThe lock mode. Possible values are: IS (intention shared lock), S (shared lock), IX (intention exclusive lock), SIX (shared intention exclusive lock), X (exclusive lock).
TX_IDSTRINGDeprecated. The ID of the transaction that created the lock.
MODESTRINGDeprecated. The lock mode.

LOCAL_PARTITION_STATES

ColumnData TypeDescription
NODE_NAMESTRINGThe name of the node the partition is stored on.
ZONE_NAMESTRINGThe name of the distribution zone the partition belongs to.
TABLE_IDINT32The ID of the table stored in the partition.
SCHEMA_NAMESTRINGThe name of the schema the table belongs to.
TABLE_NAMESTRINGThe name of the table stored in the partition.
PARTITION_IDINT32The unique identifier of the partition.
PARTITION_STATESTRINGPartition status. Possible values: HEALTHY, INITIALIZING, INSTALLING_SNAPSHOT, CATCHING_UP, UNAVAILABLE, BROKEN. See Disaster Recovery documentation for more information.
ESTIMATED_ROWSINT64The estimated number of rows in a partition.
ZONE_IDINT32Unique zone identifier.
SCHEMA_IDINT32Unique schema identifier.
STATESTRINGDeprecated. Partition status.

SCHEMAS

ColumnData TypeDescription
SCHEMA_IDINT32Unique schema identifier.
SCHEMA_NAMESTRINGThe name of the schema.

SQL_QUERIES

ColumnData TypeDescription
INITIATOR_NODESTRINGThe name of the node that initiated the query.
QUERY_IDSTRINGThe query ID.
USERNAMESTRINGThe name of the user who started the query.
QUERY_PHASESTRINGThe query phase: INITIALIZATION (query registration and parsing), OPTIMIZATION (query validation and plan optimization), EXECUTION (query plan execution).
QUERY_TYPESTRINGThe query type: DDL, DML, QUERY, or SCRIPT.
QUERY_DEFAULT_SCHEMASTRINGThe name of the default schema that was used to execute the query.
SQLSTRINGThe SQL query's expression.
QUERY_START_TIMETIMESTAMPThe date/time the query started.
TRANSACTION_IDSTRINGThe ID of the transaction in which the query was executed.
PARENT_QUERY_IDSTRINGID of the script that initiated the query (NULL if the query was not initiated by a script).
QUERY_STATEMENT_ORDINALINT32The ordinal number of the query.
IDSTRINGDeprecated. The query ID.
PHASESTRINGDeprecated. The query phase.
TYPESTRINGDeprecated. The query type.
SCHEMASTRINGDeprecated. The name of the default schema that was used to execute the query.
START_TIMETIMESTAMPDeprecated. The date/time the query started.
PARENT_IDSTRINGDeprecated. ID of the script that initiated the query.
STATEMENT_NUMINT32Deprecated. The ordinal number of the query.

SQL_CACHED_QUERY_PLANS

ColumnData TypeDescription
NODE_IDSTRINGID of the node where the plan is cached.
PLAN_IDSTRINGInternal identifier of the prepared plan.
CATALOG_VERSIONINT32Catalog version used when the query was prepared.
QUERY_DEFAULT_SCHEMASTRINGDefault schema applied during query preparation.
SQLSTRINGNormalized SQL text of the query.
QUERY_TYPESTRINGQuery type.
QUERY_PLANSTRINGSerialized or explain representation of the chosen query plan.
QUERY_PREPARE_TIMETIMESTAMP WITH LOCAL TIME ZONETime the plan was prepared on the node.

SYSTEM_VIEWS

Describes available system views.

ColumnData TypeDescription
VIEW_IDINT32System view ID.
SCHEMA_NAMESTRINGName of the schema used. Default is SYSTEM.
VIEW_NAMESTRINGSystem view name.
VIEW_TYPESTRINGSystem view type. Possible values: NODE (The view provides node-specific information. Data will be collected from all nodes, and represented in the view.), CLUSTER (The view provides cluster-wide information. Data will be collected from one node, chosen to represent the cluster.).
IDINT32Deprecated. System view ID.
SCHEMASTRINGDeprecated. Name of the schema used. Default is SYSTEM.
NAMESTRINGDeprecated. System view name.
TYPESTRINGDeprecated. System view type.

SYSTEM_VIEW_COLUMNS

Describes available system view columns.

ColumnData TypeDescription
VIEW_IDINT32System view ID.
VIEW_NAMESTRINGColumn name.
COLUMN_TYPESTRINGColumn type. Can be any of the supported types.
IS_NULLABLE_COLUMNBOOLEANDefines if the column can be empty.
COLUMN_PRECISIONINT32Maximum number of digits.
COLUMN_SCALEINT32Maximum number of decimal places.
COLUMN_LENGTHINT32Maximum length of the value. Symbols for string values or bytes for binary values.
NAMESTRINGDeprecated. Column name.
TYPESTRINGDeprecated. Column type.
NULLABLEBOOLEANDeprecated. Defines if the column can be empty.
PRECISIONINT32Deprecated. Maximum number of digits.
SCALEINT32Deprecated. Maximum number of decimal places.
LENGTHINT32Deprecated. Maximum length of the value.

TABLES

ColumnData TypeDescription
SCHEMA_NAMESTRINGThe schema used by the table.
TABLE_NAMESTRINGTable name.
TABLE_IDINT32Unique table identifier.
TABLE_PK_INDEX_IDINT32The identifier of the primary key index.
ZONE_NAMESTRINGThe distribution zone the table belongs to.
STORAGE_PROFILESTRINGThe storage profile the table uses.
TABLE_COLOCATION_COLUMNSSTRINGThe name of the column that is used to colocate data.
SCHEMA_IDSTRINGThe identifier of the schema used by the table.
ZONE_IDSTRINGThe identifier of the zone the table belongs to.
IS_CACHEBOOLEANDefines if it is a cache.
SCHEMASTRINGDeprecated. The schema used by the table.
NAMESTRINGDeprecated. Table name.
IDINT32Deprecated. Unique table identifier.
PK_INDEX_IDINT32Deprecated. The identifier of the primary key index.
COLOCATION_KEY_INDEXSTRINGDeprecated. The name of the column that is used to colocate data.
ZONESTRINGDeprecated. The distribution zone the table belongs to.

TABLE_COLUMNS

ColumnData TypeDescription
SCHEMA_NAMESTRINGThe schema used by the table.
TABLE_NAMESTRINGTable name.
TABLE_IDINT32Unique table identifier.
COLUMN_NAMESTRINGColumn name.
COLUMN_TYPESTRINGColumn data type.
IS_NULLABLE_COLUMNBOOLEANIf the column can be NULL.
COLUMN_PRECISIONINT32Value precision. 0 if not applicable to data type.
COLUMN_SCALEINT32Value scale. 0 if not applicable to data type.
COLUMN_LENGTHINT32Value length, in bytes.
COLUMN_ORDINALINT32The ordinal number of the column.
SCHEMA_IDINT32The id of the schema used by the sequence.
PK_COLUMN_ORDINALINT32Zero-based position of the column in the primary key. NULL if the column is not part of the primary key.
COLOCATION_COLUMN_ORDINALINT32Zero-based position of the column in the colocation key. NULL if the column is not part of the primary key.
SCHEMASTRINGDeprecated. The schema used by the table.
TYPESTRINGDeprecated. Column data type.
NULLABLEBOOLEANDeprecated. If the column can be NULL.
PRECINT32Deprecated. Value precision.
SCALEINT32Deprecated. Value scale.
LENGTHINT32Deprecated. Value length, in bytes.

TRANSACTIONS

note

This view shows only the currently active transactions.

ColumnData TypeDescription
COORDINATOR_NODE_IDSTRINGThe name of the transaction's coordinator node.
TRANSACTION_STATESTRINGThe transaction state. For read-only transactions, the value is always null (empty). For read-write transactions, the possible values are PENDING (the transaction is in progress) and FINISHING (the transaction is in the process of being finished).
TRANSACTION_IDSTRINGThe transaction ID.
TRANSACTION_START_TIMETIMESTAMPThe transaction's start time.
TRANSACTION_TYPESTRINGThe transaction type: READ_ONLY or READ_WRITE.
TRANSACTION_PRIORITYSTRINGThe transaction priority, which is used to resolve conflicts between transactions. Currently, this value cannot be explicitly set by the user. Possible values are LOW and NORMAL (default).
STATESTRINGDeprecated. The transaction state.
IDSTRINGDeprecated. The transaction ID.
START_TIMETIMESTAMPDeprecated. The transaction's start time.
TYPESTRINGDeprecated. The transaction type.
PRIORITYSTRINGDeprecated. The transaction priority.

ZONES

ColumnData TypeDescription
ZONE_NAMESTRINGThe name of the distribution zone.
ZONE_PARTITIONSINT32The number of partitions in the distribution zone.
ZONE_REPLICASSTRINGThe number of copies of each partition in the distribution zone.
DATA_NODES_AUTO_ADJUST_SCALE_UPINT32The delay in seconds between the new node joining and the start of data zone adjustment.
DATA_NODES_AUTO_ADJUST_SCALE_DOWNINT32The delay in seconds between the node leaving the cluster and the start of data zone adjustment.
DATA_NODES_FILTERSTRINGThe filter that specifies what nodes will be used by the distribution zone.
IS_DEFAULT_ZONEBOOLEANIf the data zone is used by default.
ZONE_CONSISTENCY_MODESTRINGThe zone's consistency mode. Possible values: STRONG_CONSISTENCY, HIGH_AVAILABILITY.
ZONE_IDINT32Unique zone identifier.
NAMESTRINGDeprecated. The name of the distribution zone.
PARTITIONSINT32Deprecated. The number of partitions in the distribution zone.
REPLICASSTRINGDeprecated. The number of copies of each partition in the distribution zone.
CONSISTENCY_MODESTRINGDeprecated. The zone's consistency mode.

ZONE_STORAGE_PROFILES

ColumnData TypeDescription
ZONE_NAMESTRINGThe name of the distribution zone.
STORAGE_PROFILESTRINGThe name of the storage profile used by the distribution zone.
IS_DEFAULT_PROFILEBOOLEANIf the storage profile is used by default.
ZONE_IDINT32Unique zone identifier.