Resource definition and ingestion SQL reference¶
STATE.RESOURCE_INGESTION_DEFINITION¶
This table is used to persist the data about configured resources. The data consists mostly of semi-structured variants.
The definition can be found in the file ingestion/resource_ingestion_definition.sql
.
The table contains the following columns:
Column name |
Description |
---|---|
|
Id of Resource Ingestion Definition. |
|
Name of the Resource Ingestion Definition that can be shown on UI. |
|
Information whether the ingestion is enabled. |
|
Id of parent’s Resource Ingestion Definition, it allows to create resource hierarchy which can be ingested |
|
Set of properties that are needed to define a resource in a specific connector. They identify a resource in a source system. They are set by a user. |
|
Set of additional properties that describe a resource. They can be fetched automatically or calculated by a connector. Optional. |
|
Set of configuration properties that describe how the resource should be ingested from the source system. Structure of this field is described in the next table. |
|
UTC timestamp representing recent update. |
The ingestion_configuration
property should follow the below schema:
Field name |
Description |
---|---|
|
Id of Ingestion Configuration. Unique for given Resource Ingestion Definition |
|
Strategy of given ingestion. Values: snapshot, incremental |
|
Set of connector-specific ingestion properties |
|
Type of schedule. Values: interval, cron |
|
String defining a schedule. e.g. 30m, 4h, 1d for interval. Cron expression in case of cron. |
|
Set of properties that describe where ingested data for a given resource should be stored. |
PUBLIC.INGESTION_DEFINITIONS¶
File: ingestion/ingestion_definitions_view.sql
This view available to ADMIN
and VIEWER
users returns the data from the STATE.RESOURCE_INGESTION_DEFINITION
table. The returned data is simplified and contains only some of the columns:
id
resource_id
name
enabled
STATE.INGESTION_PROCESS¶
File: ingestion/ingestion_run.sql
This table is used to persist the data about process. It is not available to any role apart from the connector itself. It contains the following columns:
Column
Type
id
STRING
resource_ingestion_definition_id
STRING
ingestion_configuration_id
STRING
type
STRING
status
STRING
created_at
TIMESTAMP_NTZ
finished_at
TIMESTAMP_NTZ
updated_at
TIMESTAMP_NTZ
Related Java objects¶
The following Java classes are related to this table:
STATE.INGESTION_RUN¶
File: ingestion/ingestion_run.sql
A table used to store log data about past and current ingestion triggered by the scheduler. It is not available to any role apart from the connector itself.
It contains the following columns:
Column
Type
id
STRING
resource_ingestion_definition_id
STRING
ingestion_configuration_id
STRING
process_id
STRING
started_at
TIMESTAMP_NTZ
completed_at
TIMESTAMP_NTZ
status
STRING
ingested_rows
NUMBER
metadata
VARIANT
Related Java objects¶
The following Java classes are related to this table: