WORKSPACES View

Records detailed information of WORKSPACE

COLUMN NAMEDATA TYPEDESCRIPTION
WORKSPACE_IDSTRINGWorkspace ID
WORKSPACE_NAMESTRINGName of the workspace
WORKSPACE_CREATORSTRINGOwner of the workspace
WORKSPACE_CREATOR_IDSTRINGAccount ID of the workspace owner
WORKSPACE_STORAGEBIGINTWorkspace storage status, excluding external tables and external data lakes, only internal data lakes and table storage are counted
CREATE_TIMETIMESTAMPWorkspace creation time
LAST_MODIFY_TIMETIMESTAMPWorkspace modification time
COMMENTSTRINGWorkspace comment information
DELETE_TIMETIMESTAMPWorkspace deletion time
PROPERTIESMAP<STRING,STRING>All set PROPERTIES are recorded in this parameter

SCHEMAS View

Records detailed information of SCHEMA Field Details

COLUMN NAMEDATA TYPEDESCRIPTION
CATALOG_NAMESTRINGName of the current WORKSPACE
SCHEMA_IDSTRINGSCHEMA ID
SCHEMA_NAMESTRINGName of the SCHEMA
TYPESTRINGEnum values EXTERNAL, MANAGED
SCHEMA_CREATORSTRINGAccount name of the database owner
SCHEMA_CREATOR_IDSTRINGAccount ID of the database owner
CREATE_TIMETIMESTAMPDatabase creation time
LAST_MODIFY_TIMETIMESTAMPDatabase modification time
COMMENTSTRINGComment information when creating the database
DELETE_TIMETIMESTAMPDatabase deletion time
PROPERTIESMAP<STRING,STRING>All set PROPERTIES will be recorded in this parameter

TABLES View

Each table in the current WORKSPACE is displayed in one row

COLUMN NAMEDATA TYPEDESCRIPTION
TABLE_CATALOGSTRINGName of the current WORKSPACE
TABLE_CATALOG_IDSTRINGID of the WORKSPACE
TABLE_SCHEMASTRINGSCHEMA to which the current TABLE belongs
TABLE_SCHEMA_IDSTRINGID of the database corresponding to the table
TABLE_NAMESTRINGTable name
TABLE_IDSTRINGTable ID
TABLE_CREATORSTRINGTable owner
TABLE_CREATOR_IDSTRINGTable creator ID
TABLE_TYPESTRINGEXTERNAL TABLE: External table VIRTUAL_VIEW: View MATERIALIIZED VIEW: Materialized view MANAGED_TABLE: Standard table
ROW_COUNTBIGINTNumber of rows, MATERIALIZED VIEW shows the corresponding number of rows. When the TABLE's ROW COUNT is NULL, it means it cannot be counted. The situations where it cannot be counted include: 1. Data written in real-time includes PRIMARY KEY tables. Since the data is constantly changing, the data in the MEMORY TABLE cannot be counted. 2. Most UPDATE and DELETE operations can usually be counted, but real-time written partition tables may not be counted after performing UPDATE/DELETE because the request does not carry information on how many rows were deleted at the time of deletion submission. 3. Deleting partitions with INSERT OVERWRITE PARTITION and TRUNCATE PARTITION, the request does not carry information on how many rows were deleted, so it cannot be recorded temporarily.
BYTESBIGINTSpace occupied, VIEW shows NULL, MATERIALIZED VIEW shows the corresponding size
CREATE_TIMETIMESTAMPTable creation time
LAST_MODIFY_TIMETIMESTAMPTable modification time
DATA_LIFECYCLEBIGINTLifecycle
IS_PARTITIONEDBOOLEANWhether it is a partitioned table
IS_CLUSTEREDBOOLEANWhether it is a clustered table
COMMENTSTRINGTable comment information
DELETE_TIMETIMESTAMPDeletion time, NULL if not deleted
DATA_LIFECYCLEINTSet lifecycle, if not set it shows NULL representing permanent, if set it will show the corresponding time
PROPERTIESMAP<STRING,STRING>All set PROPERTIES will be recorded in this parameter

COLUMNS View

The query result contains each field in the table as a row

COLUMN NAMEDATA TYPEDESCRIPTION
TABLE_CATALOGSTRINGName of the current WORKSPACE
TABLE_CATALOG_IDSTRINGID of the WORKSPACE
TABLE_SCHEMASTRINGSCHEMA to which the current TABLE belongs
TABLE_SCHEMA_IDSTRINGID of the database corresponding to the table
TABLE_NAMESTRINGTable name
TABLE_IDSTRINGTable ID
COLUMN_NAMESTRINGField name
COLUMN_IDSTRINGField ID
COLUMN_DEFAULTSTRINGField default value, currently reserved value
IS_NULLABLEBOOLEANWhether it can be NULL
DATA_TYPESTRINGField type
IS_PARTITIONING_COLUMNBOOLEANWhether it is a partition field
IS_CLUSTERING_COLUMNBOOLEANWhether it is a CLUSTER table
IS_PRIMARY_KEYBOOLEANWhether it is a primary key
COMMENTSTRINGField comment information
DELETE_TIMETIMESTAMPDeletion time, NULL if not deleted

VIEWS View

Each view displays a row, containing all views under the current INSTANCE

COLUMN NAMEDATA TYPEDESCRIPTION
TABLE_CATALOGSTRINGName of the current WORKSPACE
TABLE_CATALOG_IDSTRINGID of the WORKSPACE
TABLE_SCHEMASTRINGSCHEMA to which the current VIEW belongs
TABLE_SCHEMA_IDSTRINGID of the database corresponding to the view
TABLE_NAMESTRINGView name
TABLE_IDSTRINGView ID
TABLE_CREATORSTRINGAccount name of the view owner
TABLE_CREATOR_IDSTRINGAccount ID of the view owner
VIEW_DEFINITIONSTRINGStatement to create the view
CREATE_TIMETIMESTAMPView creation time
LAST_MODIFY_TIMETIMESTAMPView modification time
COMMENTSTRINGView comment information
DELETE_TIMETIMESTAMPDeletion time, NULL if not deleted

USERS View

Each user and workspace displays one row, containing all users of the current ACCOUNT

COLUMN NAMEDATA TYPEDESCRIPTION
WORKSPACE_NAMESTRINGWorkspace of the user
WORKSPACE_IDSTRINGWorkspace ID of the user
USER_IDSTRINGUser ID generated by the system
USER_NAMESTRINGUser name, concatenated with WORKSPACE NAME and USER NAME
ROLE_NAMESTRINGRoles owned by the current user, multiple roles separated by commas
ADD_TIMETIEMSTAMPUser creation time
EMAILSTRINGUser email
TELEPHONESTRINGUser phone
LAST_SUCCESS_LOGINTIMESTAMPLast login time
COMMENTSTRINGDescription of user information
DELETE_TIMETIMESTAMPDeletion time, NULL if not deleted
PROPERTIESMAP<STRING,STRING>All set PROPERTIES will be recorded in this parameter

ROLES View

Each role and workspace displays one row, containing all roles of the current ACCOUNT

COLUMN NAMEDATA TYPEDESCRIPTION
WORKSPACE_NAMESTRINGName of the current workspace
WORKSPACE_IDSTRINGWorkspace ID of the role
ROLE_NAMESTRINGRole name
ROLE_IDSTRINGROLE ID
USER_NAMESTRINGThe name of the user granted this role, multiple users are separated by commas. Corresponding users for the ROLE
USER_IDSTRINGThe ID of the user granted this role
COMMENTSTRINGDescription of user information
DELETE_TIMETIMESTAMPDeletion time, NULL if not deleted

JOB_HISTORY View

Run information under all spaces

COLUMN NAMEDATA TYPEDESCRIPTION
WORKSPACE_NAMESTRINGThe space where the JOB is running
WORKSPACE_IDSTRING
JOB_IDSTRINGJob ID
JOB_NAMESTRINGJob name
JOB_CREATOR_IDSTRINGUser ID running the job
JOB_CREATORSTRINGUser running the job
STATUSSTRINGSETUP RESUMING_CLUSTER QUEUED RUNNING SUCCESS FAILED CANCELED
CRUDECIMAL(38,5)Computing resources consumed by the user
ERROR_MESSAGESTRINGThis information will be available if there is an error during execution
JOB_TYPESTRINGJob type SQL
JOB_TEXTSTRINGStatement executed by the JOB
START_TIMETIMESTAMPJOB start time
END_TIMETIMESTAMPJOB end time
EXECUTION_TIMEDOUBLEExecution time, in seconds
INPUT_BYTESBIGINTActual scanned data volume.
CACHE_HITBIGINTData read from cache
OUTPUT_BYTESBIGINTOutput bytes.
INPUT_OBJECTSSTRINGInput table names in the format [SCHEMA].[TABLE], multiple tables separated by commas
OUTPUT_OBJECTSSTRINGOutput table names in the format [SCHEMA].[TABLE]
CLIENT_INFOSTRINGClient information, from JDBC, client, web page, JAVA SDK
VIRTUAL_CLUSTERSTRINGComputing resources used
VIRTUAL_CLUSTER_IDBIGINT
ROWS_PRODUCEDBIGINTTotal number of records processed, input data
ROWS_INSERTEDBIGINTShould have a value if it is an insert action
ROWS_UPDATEDBIGINTShould have a value if it is an update action
ROWS_DELETEDBIGINTShould have a value if it is a delete action
JOB_CONFIGSTRINGParameter information set when submitting the job
JOB_PRIORITYSTRINGJob priority
INPUT_TABLESSTRINGJSON format array INPUT_TABLES:{[{TABLE:WORKSAPCE_NAME.SCHEMA.TABLENAME1, SIZE:0,RECORD:0,CACHESIZE:0,PARTITIONS:[]},{TABLE:WORKSAPCE_NAME.SCHEMA.TABLENAME2 SIZE:0,RECORD:0,CACHESIZE:0,PARTITIONS:[]}......]}
OUTPUT_TABLESSTRINGName of the output object
QUERY_TAGSTRINGUsers can tag the JOB in the client
ERROR_MESSAGESTRINGError message

MATERIALIZED VIEW Refresh View (MATERIALIZED_VIEW_REFRESH_HISTORY) {#materialized-view-refresh-history}

COLUMN_NAMEDATA_TYPEDESCRIPTION
WORKSPACE_IDBIGINTProject space ID
WORKSPACE_NAMESTRINGProject space name
SCHEMA_IDBIGINTSCHEMA ID
SCHEMA_NAMESTRINGSCHEMA name
MATERIALIZED_VIEW_IDBIGINTMaterialized view ID
MATERIALIZED_VIEW_NAMESTRINGMaterialized view name
CREDITS_USEDDECIMALCredits used for refreshing the materialized view
VIRTUAL_CLUSER_IDBIGINTMaterialized view ID
VIRTUAL_CLUSTERSTRINGMaterialized view name, this information is available for automatic refresh
STATUSSTRINGPENDING\RUNNING\FINISHED\FAILED
REFRESH_MODESTRINGEnum values INCREMENTAL FULL_REFRESH NO_DATA
STATISTICSSTRINGRecords the number of incremental rows
SCHEDULE_START_TIMETIMESTAMP_LTZScheduled refresh time
START_TIMETIMESTAMP_LTZMaterialized view start time
END_TIMETIMESTAMP_LTZMaterialized view end time
ERROR_MESSAGESTRINGError message if the refresh fails, it will be here

VOLUMES View

column_namedata_typedescription
VOLUME_CATALOGSTRINGName of the associated Workspace
VOLUME_CATALOG_IDSTRINGID of the associated Workspace
VOLUME_SCHEMASTRINGName of the associated Schema
VOLUME_SCHEMA_IDSTRINGID of the schema corresponding to the Volume
VOLUME_NAMESTRINGVolume name
VOLUME_IDSTRINGVolume ID
VOLUME_URLSTRINGURL bound to the Volume
VOLUME_REGIONSTRINGRegion to which the Volume belongs
VOLUME_TYPESTRINGVolume type (internal means no need to specify third-party cloud provider address when creating volume, or external)
VOLUME_CREATORSTRINGVolume owner
CONNECTION_NAMESTRINGReferenced connection name
CONNECTION_IDSTRINGReferenced connection ID
PROPERTIESmap<string,string>
COMMENTSTRINGComment
CREATE_TIMETIMESTAMPCreation time
LAST_MODIFY_TIMETIMESTAMPModification time

CONNECTIONS View

column_namedata typedescription
WORKSPACE_NAMESTRINGThe workspace where the object is located
WORKSPACE_IDSTRING
CONNECTION_NAMESTRINGConnection object name
CONNECTION_IDSTRING
CONNECTION_KINDSTRINGEnum values supporting connection types, STORAGE CONNECTION, API CONNECTION
TYPESTRINGSpecifies the type of data source connection, storage connection supports FILE_SYSTEM, API connection supports CLOUD_FUNCTION
PROVIDERSTRINGWhen TYPE is FILE_SYSTEM, it is OSS / COS; when TYPE is CLOUD_FUNCTION, it is aliyun / tencent
REGIONSTRINGThe region connected to, such as ap-shanghai / cn-beijing
SOURCE_CREATORSTRINGCreator
CREATED_TIMETIMESTAMPCreation time
COMMENTSTRINGComment information
PROPERTIESmap<string,string>

OBJECT_PRIVILEGES View

Column NameData TypeDescription
GRANTORTEXTThe USER who grants the privilege.
GRANTEETEXTThe user_name or role_name that is granted the privilege.
GRANTED_TOTEXTWhether the privilege is granted to a USER or ROLE.
OBJECT_CATALOGTEXTThe workspace or catalog name where the granted object resides.
OBJECT_SCHEMATEXTThe schema where the granted object resides, or null if the object is not schema-bound.
OBJECT_NAMETEXTThe name of the object that the privilege is granted on. Displayed directly without using workspace.schema.name format.
OBJECT_TYPETEXTThe type of the object that the privilege is granted on.
SUB_OBJECT_TYPETEXTSub-object type (details not provided).
PRIVILEGE_TYPETEXTThe specific type of privilege granted.
IS_GRANTABLETEXTWhether the privilege was granted with the WITH GRANT OPTION.
AUTHORIZATION_TIMETIMESTAMP_LTZThe time when the privilege was granted.