Skip to main content
Version: 3.0.0

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_JOBS

ColumnData TypeDescription
IDSTRINGThe compute job ID.
COORDINATOR_NODE_IDSTRINGThe job's coordinator node ID.
STATUSSTRINGThe job status.
CREATE_TIMETIMESTAMP WITH LOCAL TIME ZONEThe job creation timestamp.
START_TIMETIMESTAMP WITH LOCAL TIME ZONEThe job start timestamp.
FINISH_TIMETIMESTAMP WITH LOCAL TIME ZONEThe job finish timestamp.

GLOBAL_PARTITION_STATES

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

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.
TYPESTRINGThe type of the index. Possible values: HASH, SORTED.
IS_UNIQUEBOOLEANIf the index is unique.
COLUMNSSTRINGThe list of indexed columns.
STATUSSTRINGCurrent 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.

LOCKS

A node system view that lists the currently active locks.

ColumnData TypeDescription
OWNING_NODE_IDSTRINGThe ID of the node that owns the lock.
TX_IDSTRINGThe ID of the transaction that created the lock.
OBJECT_IDSTRINGThe ID of the locked object.
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

LOCAL_PARTITION_STATES

ColumnData TypeDescription
ZONE_NAMESTRINGThe name of the distribution zone the partition belongs to.
TABLE_NAMESTRINGThe name of the table stored in the partition.
TABLE_IDINT32The ID of the table stored in the partition.
SCHEMASTRINGThe name of the schema the table belongs to.
PARTITION_IDINT32The unique identifier of the partition.
STATESTRINGPartition status. Possible values: AVAILABLE, DEGRADED, READ_ONLY, UNAVAILABLE. See Disaster Recovery documentation for more information.
ESTIMATED_ROWSINT64The estimated number of rows in a partition.

SQL_QUERIES

ColumnData TypeDescription
INITIATOR_NODESTRINGThe name of the node that initiated the query.
PHASESTRINGThe query phase:
* INITIALIZATION - query registration and parsing
* OPTIMIZATION - query validation and plan optimization
* EXECUTION - query plan execution
TYPESTRINGThe query type: DDL, DML, QUERY, or SCRIPT.
IDSTRINGThe query ID.
USERNAMESTRINGThe name of the user who started the query.
PARENT_IDSTRINGID of the script that initiated the query (NULL if the query was not initiated by a script).
SQLSTRINGThe SQL query's expression.
START_TIMETIMESTAMPThe date/time the query started.
SCHEMASTRINGThe name of the default schema that was used to execute the query.
TRANSACTION_IDSTRINGThe ID of the transaction in which the query was executed.

SYSTEM_VIEWS

Describes available system views.

ColumnData TypeDescription
IDINT32System view ID.
SCHEMASTRINGName of the schema used. Default is SYSTEM.
NAMESTRINGSystem view name.
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.

SYSTEM_VIEW_COLUMNS

Describes available system view columns.

ColumnData TypeDescription
VIEW_IDINT32System view ID.
NAMESTRINGColumn name.
TYPESTRINGColumn type. Can by any of the supported types.
NULLABLEBOOLEANDefines if the column can be empty.
PRECISIONINT32Maximum number of digits.
SCALEINT32Maximum number of decimal places.
LENGTHINT32Maximum length of the value. Symbols for string values or bytes for binary values.

TRANSACTIONS

note

This view shows only the currently active transactions.

ColumnData TypeDescription
COORDINATOR_NODESTRINGThe name of the transaction's coordinator node.
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.
IDSTRINGThe transaction ID.
START_TIMETIMESTAMPThe transaction's start time.
TYPESTRINGThe transaction type: READ_ONLY or READ_WRITE.
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).

ZONES

ColumnData TypeDescription
NAMESTRINGThe name of the distribution zone.
PARTITIONSINT32The number of partitions in the distribution 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_ZONEBOOLEANDefines if the data zone is used by default.