Tableaux de reporting des règles de qualité des données
Vérifiez les instructions ` Postgres `, ` Db2 ` et ` Oracle ` pour les tables liées à la qualité des données.
| Domaine | Nom de la table | Description |
|---|---|---|
| Règles de qualité des données | Problèmes liés aux colonnes d'actifs | Les problèmes liés à la qualité des données pour une colonne. |
| Règles de qualité des données | Problèmes liés aux actifs | Les problèmes observés lorsque les actifs sont soumis à une analyse de qualité afin de déterminer la qualité globale des données. |
| Règles de qualité des données | dq_vérifications | Informations sur les contrôles de qualité des données. |
| Règles de qualité des données | dq_v4_dimensions | Informations sur les critères de qualité de la règle, par exemple s'il existe des doublons. |
| Règles de qualité des données | définitions_règles_dq | Définition de la règle de qualité des données. |
| Règles de qualité des données | dq_règles_définitions | Définitions des règles de qualité des données. |
| Règles de qualité des données | règles_dq | Informations relatives aux règles de qualité des données. |
| Règles de qualité des données | dq_rule_bindings | Les liaisons de règles pour la règle de qualité des données. |
| Règles de qualité des données | dq_exécution_règle | Heure prévue pour l'exécution de la règle de qualité des données. |
| Règles de qualité des données | Nombre de définitions d'exécution de règles dq | Stocke le nombre d'enregistrements testés, réussis et échoués au niveau de la définition pour chaque exécution de règle de qualité des données. |
| Règles de qualité des données | évaluations_sla | Ce tableau contient des informations sur les évaluations SLA. |
| Règles de qualité des données | sla_violations | Ce tableau contient des informations sur les violations du SLA. |
| Règles de qualité des données | sla_actions | Ce tableau contient des informations sur les actions SLA. |
| Règles de qualité des données | sla_rule_def_conditions | Ce tableau contient des informations sur les conditions de définition des règles SLA. |
| Règles de qualité des données | sla_rule_def_actions | Ce tableau contient des informations sur les actions associées aux définitions des règles SLA. |
Table dq_issues_for_asset_columns
Ce tableau comporte les colonnes suivantes :
issue_id- L'identifiant du problème lié à l'actif.asset_id- L'identifiant de l'actif.container_id- L'identifiant du projet.column_name- Le nom de la colonne pour laquelle vous appliquez les règles de qualité des données et effectuez l'analyse.check_id- L'identifiant pour le contrôle de la qualité des données.number_of_occurences- Le nombre d'occurrences détectées lors du contrôle de la qualité des données.number_of_tested_records- Nombre d'enregistrements testés trouvés pour le contrôle de la qualité des données.percent_occurences- Le pourcentage des occurrences.score- Score trouvé après avoir effectué une vérification.status- L'état actuel d'un problème.ignored- Indicateur permettant de déterminer si le problème actuel est lié au problème de qualité des données.
Postgres
Instruction CREATE TABLE :
CREATE TABLE IF NOT EXISTS dq_issues_for_asset_columns (
issue_id character varying(36) COLLATE pg_catalog.default NOT NULL,
container_id character varying(36) COLLATE pg_catalog.default NOT NULL,
column_name character varying(256) COLLATE pg_catalog.default NOT NULL,
asset_id character varying(36) COLLATE pg_catalog.default NOT NULL,
check_id character varying(36) COLLATE pg_catalog.default NOT NULL,
number_of_occurrences bigint NOT NULL DEFAULT 0,
number_of_tested_records bigint NOT NULL DEFAULT 0,
percent_occurrences double precision,
score double precision,
status character varying(16) COLLATE pg_catalog.default NOT NULL,
ignored boolean NOT NULL,
tech_start timestamp(6) without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
tech_end timestamp(6) without time zone NOT NULL DEFAULT to_timestamp('9999-12-30' :: text, 'YYYY-MM-DD' :: text),
ts_id timestamp(6) without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT dq_issues_for_asset_columns_pkey PRIMARY KEY (issue_id, asset_id, container_id, column_name),
CONSTRAINT fk_dq_issues_for_asset_columns_container_data_asset_columns_6 FOREIGN KEY (container_id, asset_id, column_name) REFERENCES container_data_asset_columns (container_id, asset_id, name) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE,
CONSTRAINT fk_dq_issues_for_asset_columns_dq_checks_5 FOREIGN KEY (container_id, check_id) REFERENCES dq_checks (container_id, check_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE
)
Db2
Instruction CREATE TABLE :
CREATE TABLE DQ_ISSUES_FOR_ASSET_COLUMNS (
ISSUE_ID VARCHAR(36 OCTETS) NOT NULL,
CONTAINER_ID VARCHAR(36 OCTETS) NOT NULL,
COLUMN_NAME VARCHAR(256 OCTETS) NOT NULL,
ASSET_ID VARCHAR(36 OCTETS) NOT NULL,
CHECK_ID VARCHAR(36 OCTETS) NOT NULL,
NUMBER_OF_OCCURRENCES BIGINT NOT NULL WITH DEFAULT 0,
NUMBER_OF_TESTED_RECORDS BIGINT NOT NULL WITH DEFAULT 0,
PERCENT_OCCURRENCES DOUBLE,
SCORE DOUBLE,
STATUS VARCHAR(16 OCTETS) NOT NULL,
IGNORED BOOLEAN NOT NULL,
TECH_START TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN,
TECH_END TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END,
TS_ID TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID,
PERIOD SYSTEM_TIME (TECH_START, TECH_END)
) IN USERSPACE1 ORGANIZE BY ROW;
Instructions ALTER TABLE:
ALTER TABLE
DQ_ISSUES_FOR_ASSET_COLUMNS
ADD
PRIMARY KEY (
ISSUE_ID,
ASSET_ID,
CONTAINER_ID,
COLUMN_NAME
) ENFORCED;
ALTER TABLE
DQ_ISSUES_FOR_ASSET_COLUMNS
ADD
CONSTRAINT FK_DQ_ISSUES_FOR_ASSET_COLUMNS_CONTAINER_DATA_ASSET_COLUMNS_6 FOREIGN KEY (CONTAINER_ID, ASSET_ID, COLUMN_NAME) REFERENCES CONTAINER_DATA_ASSET_COLUMNS (CONTAINER_ID, ASSET_ID, NAME) ON DELETE CASCADE ON UPDATE NO ACTION ENFORCED ENABLE QUERY OPTIMIZATION;
ALTER TABLE
DQ_ISSUES_FOR_ASSET_COLUMNS
ADD
CONSTRAINT FK_DQ_ISSUES_FOR_ASSET_COLUMNS_DQ_CHECKS_5 FOREIGN KEY (CHECK_ID, CONTAINER_ID) REFERENCES DQ_CHECKS (CHECK_ID, CONTAINER_ID) ON DELETE CASCADE ON UPDATE NO ACTION ENFORCED ENABLE QUERY OPTIMIZATION;
Oracle
Instruction CREATE TABLE :
CREATE TABLE dq_issues_for_asset_columns(issue_id varchar(36) NOT NULL,
container_id varchar(36) NOT NULL,
column_name varchar(256) NOT NULL,
asset_id varchar(36) NOT NULL,
check_id varchar(36) NOT NULL,
number_of_occurrences NUMBER(19) DEFAULT 0 NOT NULL,
number_of_tested_records NUMBER(19) DEFAULT 0 NOT NULL,
percent_occurrences float,
score float,
status varchar(16) NOT NULL,
ignored decimal(1) CHECK (ignored IN (0, 1)) NOT NULL,
tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
PRIMARY KEY(issue_id,
asset_id,
container_id,
column_name))
Instructions ALTER TABLE:
ALTER TABLE dq_issues_for_asset_columns ADD CONSTRAINT fk_dq_issues_for_asset_columns_container_data_asset_columns_6 FOREIGN KEY (asset_id,
container_id,
column_name) REFERENCES container_data_asset_columns(asset_id,
container_id,
name) ON
DELETE
CASCADE
ALTER TABLE dq_issues_for_asset_columns ADD CONSTRAINT fk_dq_issues_for_asset_columns_dq_checks_5 FOREIGN KEY (check_id,
container_id) REFERENCES dq_checks(check_id,
container_id) ON
DELETE
CASCADE
Problèmes liés aux actifs
Ce tableau comporte les colonnes suivantes :
issue_id- L'identifiant du problème lié à l'actif.container_id- L'identifiant du projet.asset_id- L'identifiant de l'actif.check_id- L'identifiant pour le contrôle de la qualité des données.number_of_occurences- Le nombre d'occurrences détectées lors du contrôle de la qualité des données.number_of_tested_records- Nombre d'enregistrements testés trouvés pour le contrôle de la qualité des données.percent_occurences- Le pourcentage des occurrences.score- Score trouvé après avoir effectué une vérification.status- L'état actuel d'un problème.ignored- Indicateur permettant d'identifier si le problème actuel est lié à la qualité des données.
Postgres
Instruction CREATE TABLE :
CREATE TABLE IF NOT EXISTS dq_issues_for_assets (
issue_id character varying(36) COLLATE pg_catalog.default NOT NULL,
container_id character varying(36) COLLATE pg_catalog.default NOT NULL,
asset_id character varying(36) COLLATE pg_catalog.default NOT NULL,
check_id character varying(36) COLLATE pg_catalog.default NOT NULL,
number_of_occurrences bigint NOT NULL DEFAULT 0,
number_of_tested_records bigint NOT NULL DEFAULT 0,
percent_occurrences double precision,
score double precision,
status character varying(16) COLLATE pg_catalog.default NOT NULL,
ignored boolean NOT NULL,
tech_start timestamp(6) without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
tech_end timestamp(6) without time zone NOT NULL DEFAULT to_timestamp('9999-12-30' :: text, 'YYYY-MM-DD' :: text),
ts_id timestamp(6) without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT dq_issues_for_assets_pkey PRIMARY KEY (issue_id, asset_id, container_id),
CONSTRAINT fk_dq_issues_for_assets_container_data_assets_4 FOREIGN KEY (container_id, asset_id) REFERENCES container_data_assets (container_id, asset_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE,
CONSTRAINT fk_dq_issues_for_assets_dq_checks_3 FOREIGN KEY (container_id, check_id) REFERENCES dq_checks (container_id, check_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE
)
Db2
Instruction CREATE TABLE :
CREATE TABLE DQ_ISSUES_FOR_ASSETS (
ISSUE_ID VARCHAR(36 OCTETS) NOT NULL,
CONTAINER_ID VARCHAR(36 OCTETS) NOT NULL,
ASSET_ID VARCHAR(36 OCTETS) NOT NULL,
CHECK_ID VARCHAR(36 OCTETS) NOT NULL,
NUMBER_OF_OCCURRENCES BIGINT NOT NULL WITH DEFAULT 0,
NUMBER_OF_TESTED_RECORDS BIGINT NOT NULL WITH DEFAULT 0,
PERCENT_OCCURRENCES DOUBLE,
SCORE DOUBLE,
STATUS VARCHAR(16 OCTETS) NOT NULL,
IGNORED BOOLEAN NOT NULL,
TECH_START TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN,
TECH_END TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END,
TS_ID TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID,
PERIOD SYSTEM_TIME (TECH_START, TECH_END)
) IN USERSPACE1 ORGANIZE BY ROW;
Instructions ALTER TABLE:
ALTER TABLE
DQ_ISSUES_FOR_ASSETS
ADD
PRIMARY KEY (ISSUE_ID, ASSET_ID, CONTAINER_ID) ENFORCED;
ALTER TABLE
DQ_ISSUES_FOR_ASSETS
ADD
CONSTRAINT FK_DQ_ISSUES_FOR_ASSETS_CONTAINER_DATA_ASSETS_4 FOREIGN KEY (CONTAINER_ID, ASSET_ID) REFERENCES CONTAINER_DATA_ASSETS (CONTAINER_ID, ASSET_ID) ON DELETE CASCADE ON UPDATE NO ACTION ENFORCED ENABLE QUERY OPTIMIZATION;
ALTER TABLE
DQ_ISSUES_FOR_ASSETS
ADD
CONSTRAINT FK_DQ_ISSUES_FOR_ASSETS_DQ_CHECKS_3 FOREIGN KEY (CHECK_ID, CONTAINER_ID) REFERENCES DQ_CHECKS (CHECK_ID, CONTAINER_ID) ON DELETE CASCADE ON UPDATE NO ACTION ENFORCED ENABLE QUERY OPTIMIZATION;
Oracle
Instruction CREATE TABLE :
CREATE TABLE dq_issues_for_assets(issue_id varchar(36) NOT NULL,
container_id varchar(36) NOT NULL,
asset_id varchar(36) NOT NULL,
check_id varchar(36) NOT NULL,
number_of_occurrences NUMBER(19) DEFAULT 0 NOT NULL,
number_of_tested_records NUMBER(19) DEFAULT 0 NOT NULL,
percent_occurrences float,
score float,
status varchar(16) NOT NULL,
ignored decimal(1) CHECK (ignored IN (0, 1)) NOT NULL,
tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
PRIMARY KEY(issue_id,
asset_id,
container_id))
Instructions ALTER TABLE:
ALTER TABLE dq_issues_for_assets ADD CONSTRAINT fk_dq_issues_for_assets_dq_checks_3 FOREIGN KEY (check_id,
container_id) REFERENCES dq_checks(check_id,
container_id) ON
DELETE
CASCADE
ALTER TABLE dq_issues_for_assets ADD CONSTRAINT fk_dq_issues_for_assets_container_data_assets_4 FOREIGN KEY (asset_id,
container_id) REFERENCES container_data_assets(asset_id,
container_id) ON
DELETE
CASCADE
Table dq_checks
Ce tableau comporte les colonnes suivantes :
check_id- L'identifiant pour le contrôle de la qualité des données.container_id- L'identifiant du projet.dq_check_type- Le type de contrôle de la qualité des données (peut êtreprofillingoudata_rule).dq_check_name- Le nom du contrôle de qualité des données.dq_dimension_id- L'identifiant de la dimension relative à la qualité des données.created_by- L'utilisateur qui a créé ce contrôle de qualité des données.created_on- La date de création du contrôle de qualité des données.
Postgres
Instruction CREATE TABLE :
CREATE TABLE IF NOT EXISTS dq_checks (
check_id character varying(36) COLLATE pg_catalog.default NOT NULL,
container_id character varying(36) COLLATE pg_catalog.default NOT NULL,
dq_check_type character varying(256) COLLATE pg_catalog.default NOT NULL,
dq_check_name character varying(256) COLLATE pg_catalog.default NOT NULL,
dq_dimension_id character varying(36) COLLATE pg_catalog.default NOT NULL,
created_by character varying(256) COLLATE pg_catalog.default NOT NULL,
created_on timestamp(6) without time zone NOT NULL,
tech_start timestamp(6) without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
tech_end timestamp(6) without time zone NOT NULL DEFAULT to_timestamp('9999-12-30' :: text, 'YYYY-MM-DD' :: text),
ts_id timestamp(6) without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT dq_checks_pkey PRIMARY KEY (check_id, container_id),
CONSTRAINT fk_dq_checks_containers_1 FOREIGN KEY (container_id) REFERENCES containers (container_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE,
CONSTRAINT fk_dq_checks_dq_v4_dimensions_2 FOREIGN KEY (dq_dimension_id) REFERENCES dq_v4_dimensions (dimension_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE
)
Db2
Instruction CREATE TABLE :
CREATE TABLE DQ_CHECKS (
CHECK_ID VARCHAR(36 OCTETS) NOT NULL ,
CONTAINER_ID VARCHAR(36 OCTETS) NOT NULL ,
DQ_CHECK_TYPE VARCHAR(256 OCTETS) NOT NULL ,
DQ_CHECK_NAME VARCHAR(256 OCTETS) NOT NULL ,
DQ_DIMENSION_ID VARCHAR(36 OCTETS) NOT NULL ,
CREATED_BY VARCHAR(256 OCTETS) NOT NULL ,
CREATED_ON TIMESTAMP(12) NOT NULL ,
TECH_START TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN ,
TECH_END TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END ,
TS_ID TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID ,
PERIOD SYSTEM_TIME ( TECH_START , TECH_END ) )
IN USERSPACE1
ORGANIZE BY ROW;
Instructions ALTER TABLE:
ALTER TABLE DQ_CHECKS
ADD PRIMARY KEY
( CHECK_ID ,
CONTAINER_ID )
ENFORCED;
ALTER TABLE DQ_CHECKS
ADD CONSTRAINT FK_DQ_CHECKS_CONTAINERS_1 FOREIGN KEY
( CONTAINER_ID )
REFERENCES CONTAINERS
( CONTAINER_ID )
ON DELETE CASCADE
ON UPDATE NO ACTION
ENFORCED
ENABLE QUERY OPTIMIZATION;
ALTER TABLE DQ_CHECKS
ADD CONSTRAINT FK_DQ_CHECKS_DQ_V4_DIMENSIONS_2 FOREIGN KEY
( DQ_DIMENSION_ID )
REFERENCES DQ_V4_DIMENSIONS
( DIMENSION_ID )
ON DELETE CASCADE
ON UPDATE NO ACTION
ENFORCED
ENABLE QUERY OPTIMIZATION;
Oracle
Instruction CREATE TABLE :
CREATE TABLE dq_checks(check_id varchar(36) NOT NULL,
container_id varchar(36) NOT NULL,
dq_check_type varchar(256) NOT NULL,
dq_check_name varchar(256) NOT NULL,
dq_dimension_id varchar(36) NOT NULL,
created_by varchar(256) NOT NULL,
created_on timestamp(6) NOT NULL,
tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
PRIMARY KEY(check_id,
container_id))
Instructions ALTER TABLE:
ALTER TABLE dq_checks ADD CONSTRAINT fk_dq_checks_containers_1 FOREIGN KEY (container_id) REFERENCES containers(container_id) ON
DELETE
CASCADE
ALTER TABLE dq_checks ADD CONSTRAINT fk_dq_checks_dq_v4_dimensions_2 FOREIGN KEY (dq_dimension_id) REFERENCES dq_v4_dimensions(dimension_id) ON
DELETE
CASCADE
dq_v4_dimensions table
Ce tableau contient des informations sur les dimensions de qualité pour la règle.
Ce tableau comporte les colonnes suivantes :
dimension_id- L'identifiant de la dimension relative à la qualité des données.name- Le nom de la dimension relative à la qualité des données.description- La description de la dimension « qualité des données ».
Postgres
Instruction CREATE TABLE :
create table dq_v4_dimensions(dimension_id varchar(128) not null,
container_id varchar(36) not null,
name varchar(256) not null,
description varchar(256) not null,
tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
primary key(dimension_id,
container_id))
Instruction ALTER TABLE :
alter table dq_v4_dimensions add constraint fk_dq_v4_dimensions_containers_1 foreign key (container_id) references containers(container_id) on
delete
cascade on
update
no action
Instruction ALTER TABLE :
ALTER TABLE IF EXISTS dq_v4_dimensions
OWNER to postgres;
Db2
Instruction CREATE TABLE :
create table dq_v4_dimensions(dimension_id varchar(128) not null,
container_id varchar(36) not null,
name varchar(256) not null,
description varchar(256) not null,
tech_start TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row begin,
tech_end TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row
end,
ts_id TIMESTAMP(12) not null generated always as transaction start ID,
primary key(dimension_id,
container_id),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row
Instruction ALTER TABLE :
alter table dq_v4_dimensions add constraint fk_dq_v4_dimensions_containers_1 foreign key (container_id) references containers(container_id) on
delete
cascade on
update
no action
Oracle
Instruction CREATE TABLE :
CREATE TABLE dq_v4_dimensions(dimension_id varchar(128) NOT NULL,
name varchar(256) NOT NULL,
description varchar(256),
tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
PRIMARY KEY(dimension_id))
Instruction ALTER TABLE :
ALTER TABLE dq_rule_definitions ADD CONSTRAINT fk_dq_rule_definitions_dq_v4_dimensions_2 FOREIGN KEY (dq_dimension_id) REFERENCES dq_v4_dimensions(dimension_id) ON
DELETE
CASCADE
ALTER TABLE dq_rules ADD CONSTRAINT fk_dq_rules_dq_v4_dimensions_3 FOREIGN KEY (dq_dimension_id) REFERENCES dq_v4_dimensions(dimension_id) ON
DELETE
CASCADE
Tableau dq_rule_definitions
Ce tableau contient les métadonnées réelles pour la règle de qualité des données.
Ce tableau comporte les colonnes suivantes :
rule_definition_id- L'identifiant de la définition de la règle de qualité des données.container_id- L'identifiant du catalogue ou du projet.expression- L'expression de la définition de la règle de qualité des données.dq_dimension_id- L'identifiant de la dimension relative à la qualité des données.name- Le nom de la définition de la qualité des données.
Postgres
Instruction CREATE TABLE :
create table dq_rule_definitions(rule_definition_id varchar(128) not null,
container_id varchar(36) not null,
expression text not null,
dq_dimension_id varchar(128),
name varchar(256) not null,
tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
primary key(rule_definition_id))
Instructions ALTER TABLE:
alter table dq_rule_definitions add constraint fk_dq_rule_definitions_containers_2 foreign key (container_id) references containers(container_id) on
delete
cascade on
update
no action
alter table dq_rule_definitions add constraint fk_dq_rule_definitions_dq_v4_dimensions_3 foreign key (dq_dimension_id,
container_id) references dq_v4_dimensions(dimension_id,
container_id) on
delete
cascade on
update
no action
Db2
Instruction CREATE TABLE :
create table dq_rule_definitions(rule_definition_id varchar(128) not null,
container_id varchar(36) not null,
expression clob not null,
dq_dimension_id varchar(128),
name varchar(256) not null,
tech_start TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row begin,
tech_end TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row
end,
ts_id TIMESTAMP(12) not null generated always as transaction start ID,
primary key(rule_definition_id),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row
Instructions ALTER TABLE:
alter table dq_rule_definitions add constraint fk_dq_rule_definitions_containers_2 foreign key (container_id) references containers(container_id) on
delete
cascade on
update
no action
alter table dq_rule_definitions add constraint fk_dq_rule_definitions_dq_v4_dimensions_3 foreign key (dq_dimension_id,
container_id) references dq_v4_dimensions(dimension_id,
container_id) on
delete
cascade on
update
no action
Oracle
Instruction CREATE TABLE :
CREATE TABLE dq_rule_definitions(rule_definition_id varchar(128) NOT NULL,
container_id varchar(36) NOT NULL,
expression clob NOT NULL,
dq_dimension_id varchar(128),
name varchar(256) NOT NULL,
tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
PRIMARY KEY(rule_definition_id))
Instructions ALTER TABLE:
ALTER TABLE dq_rule_definitions ADD CONSTRAINT fk_dq_rule_definitions_containers_2 FOREIGN KEY (container_id) REFERENCES containers(container_id) ON
DELETE
CASCADE
ALTER TABLE dq_rule_definitions ADD CONSTRAINT fk_dq_rule_definitions_dq_v4_dimensions_3 FOREIGN KEY (dq_dimension_id,
container_id) REFERENCES dq_v4_dimensions(dimension_id,
container_id) ON
DELETE
CASCADE
Tableau dq_rules_defs
Ce tableau contient des détails sur les liens entre les règles et les définitions, car plusieurs liens peuvent être créés.
Ce tableau comporte les colonnes suivantes :
rule_id- L'identifiant de la règle de qualité des données.rule_definition_id- Identifiant de la définition de la règle.disambiguator- Le numéro de désambiguïsation.
Postgres
Instruction CREATE TABLE :
create table dq_rules_defs(rule_id varchar(128) not null,
rule_definition_id varchar(128) not null,
disambiguator integer,
tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
primary key(rule_id,
rule_definition_id))
Instructions ALTER TABLE:
alter table dq_rules_defs add constraint fk_dq_rules_defs_dq_rules_1 foreign key (rule_id) references dq_rules(rule_id) on
delete
cascade on
update
no action
alter table dq_rules_defs add constraint fk_dq_rules_defs_dq_rule_definitions_2 foreign key (rule_definition_id) references dq_rule_definitions(rule_definition_id) on
delete
cascade on
update
no action
Db2
Instruction CREATE TABLE :
create table dq_rules_defs(rule_id varchar(128) not null,
rule_definition_id varchar(128) not null,
disambiguator integer,
tech_start TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row begin,
tech_end TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row
end,
ts_id TIMESTAMP(12) not null generated always as transaction start ID,
primary key(rule_id,
rule_definition_id),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row
Instructions ALTER TABLE:
alter table dq_rules_defs add constraint fk_dq_rules_defs_dq_rules_1 foreign key (rule_id) references dq_rules(rule_id) on
delete
cascade on
update
no action
alter table dq_rules_defs add constraint fk_dq_rules_defs_dq_rule_definitions_2 foreign key (rule_definition_id) references dq_rule_definitions(rule_definition_id) on
delete
cascade on
update
no action
Oracle
Instruction CREATE TABLE :
CREATE TABLE dq_rules_defs(rule_id varchar(128) NOT NULL,
rule_definition_id varchar(128) NOT NULL,
disambiguator integer,
tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
PRIMARY KEY(rule_id,
rule_definition_id))
Instructions ALTER TABLE:
ALTER TABLE dq_rules_defs ADD CONSTRAINT fk_dq_rules_defs_dq_rules_1 FOREIGN KEY (rule_id) REFERENCES dq_rules(rule_id) ON
DELETE
CASCADE
ALTER TABLE dq_rules_defs ADD CONSTRAINT fk_dq_rules_defs_dq_rule_definitions_2 FOREIGN KEY (rule_definition_id) REFERENCES dq_rule_definitions(rule_definition_id) ON
DELETE
CASCADE
Table dq_rules
Ce tableau contient des informations sur les règles de qualité des données.
Ce tableau comporte les colonnes suivantes :
rule_id- L'identifiant de la règle de qualité des données.container_id- L'identifiant du catalogue ou du projet.dq_dimension_id- L'identifiant de la dimension de la règle de qualité des données.name- Le nom de la règle de qualité des données.output_asset_id- L'identifiant de l'actif de sortie.output_asset_container_id- L'identifiant du catalogue ou du projet de sortie.
Postgres
Instruction CREATE TABLE :
create table dq_rules(rule_id varchar(128) not null,
container_id varchar(36) not null,
dq_dimension_id varchar(128),
name varchar(256) not null,
output_asset_id varchar(128),
output_asset_container_id varchar(36),
tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
primary key(rule_id))
Instruction ALTER TABLE :
alter table dq_rules add constraint fk_dq_rules_dq_v4_dimensions_5 foreign key (dq_dimension_id,
container_id) references dq_v4_dimensions(dimension_id,
container_id) on
delete
cascade on
update
no action
Db2
Instruction CREATE TABLE :
create table dq_rules(rule_id varchar(128) not null,
container_id varchar(36) not null,
dq_dimension_id varchar(128),
name varchar(256) not null,
output_asset_id varchar(128),
output_asset_container_id varchar(36),
tech_start TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row begin,
tech_end TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row
end,
ts_id TIMESTAMP(12) not null generated always as transaction start ID,
primary key(rule_id),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row
Instruction ALTER TABLE :
alter table dq_rules add constraint fk_dq_rules_dq_v4_dimensions_5 foreign key (dq_dimension_id,
container_id) references dq_v4_dimensions(dimension_id,
container_id) on
delete
cascade on
update
no action
Oracle
Instruction CREATE TABLE :
CREATE TABLE dq_rules(rule_id varchar(128) NOT NULL,
container_id varchar(36) NOT NULL,
dq_dimension_id varchar(128),
name varchar(256) NOT NULL,
output_asset_id varchar(128),
output_asset_container_id varchar(36),
tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
PRIMARY KEY(rule_id))
Instruction ALTER TABLE :
ALTER TABLE dq_rules ADD CONSTRAINT fk_dq_rules_dq_v4_dimensions_5 FOREIGN KEY (dq_dimension_id,
container_id) REFERENCES dq_v4_dimensions(dimension_id,
container_id) ON
DELETE
CASCADE
Table dq_rule_bindings
Ce tableau contient des informations sur les liaisons des règles de qualité des données.
Ce tableau comporte les colonnes suivantes :
rule_id- L'identifiant de la règle de qualité des données.rule_definition_id- Identifiant de la définition de la règle.variable_name- Identifiant de la variable qui se lie à la colonne pour la règle de qualité des données.column_name- Le nom de la colonne.container_id- L'identifiant du catalogue ou du projet.asset_id- L'identifiant de l'actif.
Postgres
Instruction CREATE TABLE :
create table dq_rule_bindings(rule_id varchar(128) not null,
variable_name varchar(256) not null,
column_name varchar(256) not null,
container_id varchar(36) not null,
asset_id varchar(128) not null,
rule_definition_id varchar(128) default 'na' not null,
tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
primary key(rule_id,
rule_definition_id,
variable_name,
column_name))
Instructions ALTER TABLE:
alter table dq_rule_bindings add constraint fk_dq_rule_bindings_dq_rules_6 foreign key (rule_id) references dq_rules(rule_id) on
delete
cascade on
update
no action
alter table dq_rule_bindings add constraint fk_dq_rule_bindings_container_data_asset_columns_7 foreign key (container_id,
asset_id,
column_name) references container_data_asset_columns(container_id,
asset_id,
name) on
delete
cascade on
update
no action
alter table dq_rule_bindings add constraint fk_dq_rule_bindings_dq_rules_defs_3 foreign key (rule_id,
rule_definition_id) references dq_rules_defs(rule_id,
rule_definition_id) on
delete
cascade on
update
no action
Db2
Instruction CREATE TABLE :
create table dq_rule_bindings(rule_id varchar(128) not null,
variable_name varchar(256) not null,
column_name varchar(256) not null,
container_id varchar(36) not null,
asset_id varchar(128) not null,
rule_definition_id varchar(128) default 'na' not null,
tech_start TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row begin,
tech_end TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row
end,
ts_id TIMESTAMP(12) not null generated always as transaction start ID,
primary key(rule_id,
rule_definition_id,
variable_name,
column_name),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row
Instructions ALTER TABLE:
alter table dq_rule_bindings add constraint fk_dq_rule_bindings_dq_rules_6 foreign key (rule_id) references dq_rules(rule_id) on
delete
cascade on
update
no action
alter table dq_rule_bindings add constraint fk_dq_rule_bindings_container_data_asset_columns_7 foreign key (container_id,
asset_id,
column_name) references container_data_asset_columns(container_id,
asset_id,
name) on
delete
cascade on
update
no action
alter table dq_rule_bindings add constraint fk_dq_rule_bindings_dq_rules_defs_3 foreign key (rule_id,
rule_definition_id) references dq_rules_defs(rule_id,
rule_definition_id) on
delete
cascade on
update
no action
Oracle
Instruction CREATE TABLE :
CREATE TABLE dq_rule_bindings(rule_id varchar(128) NOT NULL,
variable_name varchar(256) NOT NULL,
column_name varchar(256) NOT NULL,
container_id varchar(36) NOT NULL,
asset_id varchar(128) NOT NULL,
rule_definition_id varchar(128) DEFAULT 'na' NOT NULL,
tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
PRIMARY KEY(rule_id,
rule_definition_id,
variable_name,
column_name))
Instructions ALTER TABLE:
ALTER TABLE dq_rule_bindings ADD CONSTRAINT fk_dq_rule_bindings_dq_rules_6 FOREIGN KEY (rule_id) REFERENCES dq_rules(rule_id) ON
DELETE
CASCADE
ALTER TABLE dq_rule_bindings ADD CONSTRAINT fk_dq_rule_bindings_container_data_asset_columns_7 FOREIGN KEY (container_id,
asset_id,
column_name) REFERENCES container_data_asset_columns(container_id,
asset_id,
name) ON
DELETE
CASCADE
ALTER TABLE dq_rule_bindings ADD CONSTRAINT fk_dq_rule_bindings_dq_rules_defs_3 FOREIGN KEY (rule_id,
rule_definition_id) REFERENCES dq_rules_defs(rule_id,
rule_definition_id) ON
DELETE
CASCADE
Table dq_rule_execution
Ce tableau contient des informations sur la tâche associée à la règle de qualité des données.
Ce tableau comporte les colonnes suivantes :
dq_rule_id- L'identifiant de la règle de qualité des données.execution_id- Identifiant de la tâche pour la tâche de règle de qualité des données.start_time- L'heure de début du travail pour le travail de règle de qualité des données.end_time- L'heure de fin du travail pour le travail de règle de qualité des données.nb_tested_rows- Nombre de lignes testées pour la tâche de règle de qualité des données.nb_passing_rows- Nombre de lignes validées pour la tâche de règle de qualité des données.nb_failing_rows- Nombre de lignes non conformes pour la tâche relative à la règle de qualité des données.percent_passing_rows- Pourcentage de lignes conformes pour la tâche de règle de qualité des données.percent_failing_rows- Pourcentage de lignes non conformes pour la tâche relative à la règle de qualité des données.sampling_used- Indique si l'échantillonnage est utilisé pour la règle de qualité des données.sample_size- La taille de l'échantillon pour la règle de qualité des données.sample_type- Le type d'échantillonnage pour la règle de qualité des données.flow_job_id- L'identifiant du flux de travail de l' DataStage.flow_job_run_id- L'identifiant de la tâche d'exécution du flux d' DataStage.
Postgres
Instruction CREATE TABLE :
CREATE TABLE "globalschema".dq_rule_execution(
dq_rule_id varchar(128) NOT NULL,
execution_id varchar(256) NOT NULL,
start_time timestamp(6) NOT NULL,
end_time timestamp(6) NOT NULL,
nb_tested_rows bigint NOT NULL,
nb_passing_rows bigint NOT NULL,
nb_failing_rows bigint NOT NULL,
percent_passing_rows float NOT NULL,
percent_failing_rows float NOT NULL,
sampling_used decimal(1) CHECK (
sampling_used in (0, 1)
) NOT NULL,
sample_size bigint,
sample_type varchar(256),
flow_job_id varchar(128),
flow_job_run_id varchar(128),
tech_start TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) NOT NULL DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(dq_rule_id, execution_id)
)
Instruction ALTER TABLE :
alter table dq_rule_execution add constraint fk_dq_rule_execution_dq_rules_8 foreign key (dq_rule_id) references dq_rules(rule_id) on
delete
cascade on
update
no action
Db2
Instruction CREATE TABLE :
CREATE TABLE "globalschema".dq_rule_execution(
dq_rule_id varchar(128) NOT NULL,
execution_id varchar(256) NOT NULL,
start_time timestamp(6) NOT NULL,
end_time timestamp(6) NOT NULL,
nb_tested_rows bigint NOT NULL,
nb_passing_rows bigint NOT NULL,
nb_failing_rows bigint NOT NULL,
percent_passing_rows float NOT NULL,
percent_failing_rows float NOT NULL,
sampling_used decimal(1) CHECK (
sampling_used in (0, 1)
) NOT NULL,
sample_size bigint,
sample_type varchar(256),
flow_job_id varchar(128),
flow_job_run_id varchar(128),
tech_start TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) NOT NULL DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(dq_rule_id, execution_id)
)
Instruction ALTER TABLE :
alter table dq_rule_execution add constraint fk_dq_rule_execution_dq_rules_8 foreign key (dq_rule_id) references dq_rules(rule_id) on
delete
cascade on
update
no action
Oracle
Instruction CREATE TABLE :
CREATE TABLE "globalschema".dq_rule_execution(
dq_rule_id varchar(128) NOT NULL,
execution_id varchar(256) NOT NULL,
start_time timestamp(6) NOT NULL,
end_time timestamp(6) NOT NULL,
nb_tested_rows bigint NOT NULL,
nb_passing_rows bigint NOT NULL,
nb_failing_rows bigint NOT NULL,
percent_passing_rows float NOT NULL,
percent_failing_rows float NOT NULL,
sampling_used decimal(1) CHECK (
sampling_used in (0, 1)
) NOT NULL,
sample_size bigint,
sample_type varchar(256),
flow_job_id varchar(128),
flow_job_run_id varchar(128),
tech_start TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) NOT NULL DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(dq_rule_id, execution_id)
)
Instruction ALTER TABLE :
ALTER TABLE dq_rule_execution ADD CONSTRAINT fk_dq_rule_execution_dq_rules_8 FOREIGN KEY (dq_rule_id) REFERENCES dq_rules(rule_id) ON
DELETE
CASCADE
Serveur MS SQL
Instruction CREATE TABLE :
CREATE TABLE "globalschema".dq_rule_execution(
dq_rule_id varchar(128) NOT NULL,
execution_id varchar(256) NOT NULL,
start_time DATETIME2 NOT NULL,
end_time DATETIME2 NOT NULL,
nb_tested_rows bigint NOT NULL,
nb_passing_rows bigint NOT NULL,
nb_failing_rows bigint NOT NULL,
percent_passing_rows float NOT NULL,
percent_failing_rows float NOT NULL,
sampling_used decimal(1) CHECK (
sampling_used in (0, 1)
) NOT NULL,
sample_size bigint,
sample_type varchar(256),
flow_job_id varchar(128),
flow_job_run_id varchar(128),
tech_start DATETIME2 GENERATED ALWAYS AS ROW START NOT NULL,
tech_end DATETIME2 GENERATED ALWAYS AS ROW END NOT NULL,
ts_id DATETIME2 DEFAULT CURRENT_TIMESTAMP NOT NULL,
CONSTRAINT PK_dq_rule_execution_globalschema PRIMARY KEY(dq_rule_id, execution_id),
PERIOD FOR SYSTEM_TIME (tech_start, tech_end)
) WITH (
SYSTEM_VERSIONING = ON (
HISTORY_TABLE = "globalschema".hist_dq_rule_execution
)
)
Table dq_rule_execution_definition_counts
Ce tableau stocke le nombre d'enregistrements testés, réussis et échoués au niveau de la définition pour chaque exécution de règle de qualité des données.
Ce tableau comporte les colonnes suivantes :
dq_rule_id- Identifiant unique de la règle de qualité des données associée à l'exécution.execution_id- Identifiant unique d'une exécution spécifique de la règle de qualité des données.rule_definition_id- Identifiant de la définition de règle individuelle évaluée dans le cadre de l'exécution de la règle.nb_passing_rows- Nombre d'enregistrements qui ont satisfait à cette définition de règle spécifique pendant l'exécution.nb_failing_rows- Nombre d'enregistrements qui n'ont pas respecté cette définition de règle spécifique lors de l'exécution.nb_tested_rows- Nombre total d'enregistrements testés pour cette définition de règle pendant l'exécution.
Postgres
Instruction CREATE TABLE :
CREATE TABLE "globalschema".dq_rule_execution_definition_counts(
dq_rule_id varchar(128) NOT NULL,
execution_id varchar(256) NOT NULL,
rule_definition_id varchar(128) NOT NULL,
nb_passing_rows bigint NOT NULL,
nb_failing_rows bigint NOT NULL,
nb_tested_rows bigint NOT NULL,
tech_start TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) NOT NULL DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(dq_rule_id, execution_id, rule_definition_id)
)
Db2
Instruction CREATE TABLE :
CREATE TABLE "globalschema".dq_rule_execution_definition_counts(
dq_rule_id varchar(128) NOT NULL,
execution_id varchar(256) NOT NULL,
rule_definition_id varchar(128) NOT NULL,
nb_passing_rows bigint NOT NULL,
nb_failing_rows bigint NOT NULL,
nb_tested_rows bigint NOT NULL,
tech_start TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN,
tech_end TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END,
ts_id TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID,
PRIMARY KEY(dq_rule_id, execution_id, rule_definition_id),
PERIOD SYSTEM_TIME (tech_start, tech_end)
)
Oracle
Instruction CREATE TABLE :
CREATE TABLE "globalschema".dq_rule_execution_definition_counts(
dq_rule_id varchar(128) NOT NULL,
execution_id varchar(256) NOT NULL,
rule_definition_id varchar(128) NOT NULL,
nb_passing_rows number(19) NOT NULL,
nb_failing_rows number(19) NOT NULL,
nb_tested_rows number(19) NOT NULL,
tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
PRIMARY KEY(dq_rule_id, execution_id, rule_definition_id)
)
Serveur MS SQL
Instruction CREATE TABLE :
CREATE TABLE "globalschema".dq_rule_execution_definition_counts(
dq_rule_id varchar(128) NOT NULL,
execution_id varchar(256) NOT NULL,
rule_definition_id varchar(128) NOT NULL,
nb_passing_rows bigint NOT NULL,
nb_failing_rows bigint NOT NULL,
nb_tested_rows bigint NOT NULL,
tech_start DATETIME2 GENERATED ALWAYS AS ROW START NOT NULL,
tech_end DATETIME2 GENERATED ALWAYS AS ROW END NOT NULL,
ts_id DATETIME2 DEFAULT CURRENT_TIMESTAMP NOT NULL,
CONSTRAINT PK_dq_rule_execution_definition_counts_globalschema PRIMARY KEY(dq_rule_id, execution_id, rule_definition_id),
PERIOD FOR SYSTEM_TIME (tech_start, tech_end)
) WITH (
SYSTEM_VERSIONING = ON (
HISTORY_TABLE = "globalschema".hist_dq_rule_execution_definition_counts
)
)
Tableau des évaluations SLA
Ce tableau contient des informations sur les évaluations SLA.
Ce tableau comporte les colonnes suivantes :
assessment_id- Identifiant unique pour l'évaluation.container_id- L'identifiant du conteneur (catalogue ou projet) dans lequel se trouve la ressource.asset_id- L'identifiant de l'actif de données.sla_rule_id- Identifiant unique de la règle SLA.created_at- Horodatage de la création de l'évaluation SLA.num_violations- Nombre total d'infractions détectées dans l'actif.violations_on_asset- Nombre d'infractions constatées sur le bien.violations_on_children- Nombre d'infractions constatées dans les colonnes des actifs.is_latest- Indique s'il s'agit de la dernière évaluation de l'actif.
Postgres
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_assessments(
assessment_id varchar(36) NOT NULL,
container_id varchar(36) NOT NULL,
asset_id varchar(36) NOT NULL,
sla_rule_id varchar(36) NOT NULL,
created_at timestamp(6) NOT NULL,
num_violations bigint DEFAULT 0 NOT NULL,
violations_on_asset bigint DEFAULT 0 NOT NULL,
violations_on_children bigint DEFAULT 0 NOT NULL,
is_latest decimal(1) CHECK (
is_latest in (0, 1)
) DEFAULT 0 NOT NULL,
tech_start TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) NOT NULL DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(assessment_id)
)
Db2
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_assessments(
assessment_id varchar(36) NOT NULL,
container_id varchar(36) NOT NULL,
asset_id varchar(36) NOT NULL,
sla_rule_id varchar(36) NOT NULL,
created_at timestamp(12) NOT NULL,
num_violations bigint DEFAULT 0 NOT NULL,
violations_on_asset bigint DEFAULT 0 NOT NULL,
violations_on_children bigint DEFAULT 0 NOT NULL,
is_latest decimal(1) CHECK (
is_latest in (0, 1)
) DEFAULT 0 NOT NULL,
tech_start TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN,
tech_end TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END,
ts_id TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID,
PRIMARY KEY(assessment_id),
PERIOD SYSTEM_TIME (tech_start, tech_end)
)
Oracle
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_assessments(
assessment_id varchar(36) NOT NULL,
container_id varchar(36) NOT NULL,
asset_id varchar(36) NOT NULL,
sla_rule_id varchar(36) NOT NULL,
created_at timestamp(6) NOT NULL,
num_violations number(19) DEFAULT 0 NOT NULL,
violations_on_asset number(19) DEFAULT 0 NOT NULL,
violations_on_children number(19) DEFAULT 0 NOT NULL,
is_latest decimal(1) DEFAULT 0 NOT NULL CHECK (
is_latest in (0, 1)
),
tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
PRIMARY KEY(assessment_id)
)
Serveur MS SQL
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_assessments(
assessment_id varchar(36) NOT NULL,
container_id varchar(36) NOT NULL,
asset_id varchar(36) NOT NULL,
sla_rule_id varchar(36) NOT NULL,
created_at DATETIME2 NOT NULL,
num_violations bigint DEFAULT 0 NOT NULL,
violations_on_asset bigint DEFAULT 0 NOT NULL,
violations_on_children bigint DEFAULT 0 NOT NULL,
is_latest decimal(1) CHECK (
is_latest in (0, 1)
) DEFAULT 0 NOT NULL,
tech_start DATETIME2 GENERATED ALWAYS AS ROW START NOT NULL,
tech_end DATETIME2 GENERATED ALWAYS AS ROW END NOT NULL,
ts_id DATETIME2 DEFAULT CURRENT_TIMESTAMP NOT NULL,
CONSTRAINT PK_sla_assessments_globalschema PRIMARY KEY(assessment_id),
PERIOD FOR SYSTEM_TIME (tech_start, tech_end)
) WITH (
SYSTEM_VERSIONING = ON (
HISTORY_TABLE = "globalschema".hist_sla_assessments
)
)
Table sla_violations
Ce tableau contient des informations sur les violations du SLA.
Ce tableau comporte les colonnes suivantes :
violation_id- Identifiant unique de l'infraction.assessment_id- Identifiant unique pour l'évaluation.container_id- L'identifiant du conteneur (catalogue ou projet) dans lequel se trouve la ressource.asset_id- L'identifiant de l'actif de données.asset_type- Le type de l'actif (par exemple, data_asset, colonne).name- Nom de l'actif.dimension_id- Identifiant unique de la dimension « qualité des données ».dimension_name- Nom de la dimension de qualité des données (par exemple, exhaustivité).missed_threshold- Valeur numérique prédéfinie qui détermine si une condition est remplie.score- Le score est calculé après l'exécution d'une évaluation SLA.deviation- La différence entre le seuil manqué et le score réel en points de pourcentage.is_children- Indique si la condition de la règle SLA s'applique à une colonne de l'actif.
Postgres
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_violations(
violation_id varchar(36) NOT NULL,
assessment_id varchar(36) NOT NULL,
container_id varchar(36) NOT NULL,
asset_id varchar(36) NOT NULL,
asset_type varchar(128) NOT NULL,
name varchar(256) NOT NULL,
dimension_id varchar(36) NOT NULL,
dimension_name varchar(36) NOT NULL,
missed_threshold float NOT NULL,
score float DEFAULT 0 NOT NULL,
deviation float NOT NULL,
is_children decimal(1) CHECK (
is_children in (0, 1)
) DEFAULT 0 NOT NULL,
tech_start TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) NOT NULL DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(violation_id, assessment_id)
)
Db2
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_violations(
violation_id varchar(36) NOT NULL,
assessment_id varchar(36) NOT NULL,
container_id varchar(36) NOT NULL,
asset_id varchar(36) NOT NULL,
asset_type varchar(128) NOT NULL,
name varchar(256) NOT NULL,
dimension_id varchar(36) NOT NULL,
dimension_name varchar(36) NOT NULL,
missed_threshold float NOT NULL,
score float DEFAULT 0 NOT NULL,
deviation float NOT NULL,
is_children decimal(1) CHECK (
is_children in (0, 1)
) DEFAULT 0 NOT NULL,
tech_start TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN,
tech_end TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END,
ts_id TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID,
PRIMARY KEY(violation_id, assessment_id),
PERIOD SYSTEM_TIME (tech_start, tech_end)
)
Oracle
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_violations(
violation_id varchar(36) NOT NULL,
assessment_id varchar(36) NOT NULL,
container_id varchar(36) NOT NULL,
asset_id varchar(36) NOT NULL,
asset_type varchar(128) NOT NULL,
name varchar(256) NOT NULL,
dimension_id varchar(36) NOT NULL,
dimension_name varchar(36) NOT NULL,
missed_threshold float NOT NULL,
score float DEFAULT 0 NOT NULL,
deviation float NOT NULL,
is_children decimal(1) DEFAULT 0 NOT NULL CHECK (
is_children in (0, 1)
),
tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
PRIMARY KEY(violation_id, assessment_id)
)
Serveur MS SQL
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_violations(
violation_id varchar(36) NOT NULL,
assessment_id varchar(36) NOT NULL,
container_id varchar(36) NOT NULL,
asset_id varchar(36) NOT NULL,
asset_type varchar(128) NOT NULL,
name varchar(256) NOT NULL,
dimension_id varchar(36) NOT NULL,
dimension_name varchar(36) NOT NULL,
missed_threshold float NOT NULL,
score float DEFAULT 0 NOT NULL,
deviation float NOT NULL,
is_children decimal(1) CHECK (
is_children in (0, 1)
) DEFAULT 0 NOT NULL,
tech_start DATETIME2 GENERATED ALWAYS AS ROW START NOT NULL,
tech_end DATETIME2 GENERATED ALWAYS AS ROW END NOT NULL,
ts_id DATETIME2 DEFAULT CURRENT_TIMESTAMP NOT NULL,
CONSTRAINT PK_sla_violations_globalschema PRIMARY KEY(violation_id, assessment_id),
PERIOD FOR SYSTEM_TIME (tech_start, tech_end)
) WITH (
SYSTEM_VERSIONING = ON (
HISTORY_TABLE = "globalschema".hist_sla_violations
)
)
Table sla_actions
Ce tableau contient des informations sur les actions SLA.
Ce tableau comporte les colonnes suivantes :
native_id- L'identifiant du workflow créé à la suite d'une évaluation SLA.assessment_id- Identifiant unique pour l'évaluation.native_definition_id- L'identifiant du type de workflow.type- Type d'action SLA (par exemple, flux de travail).completed- Indique si l'action a été effectuée.
Postgres
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_actions(
native_id varchar(36) NOT NULL,
assessment_id varchar(36) NOT NULL,
native_definition_id varchar(36) NOT NULL,
type varchar(36) NOT NULL,
completed decimal(1) CHECK (
completed in (0, 1)
) DEFAULT 0 NOT NULL,
tech_start TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) NOT NULL DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(native_id, assessment_id)
)
Db2
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_actions(
native_id varchar(36) NOT NULL,
assessment_id varchar(36) NOT NULL,
native_definition_id varchar(36) NOT NULL,
type varchar(36) NOT NULL,
completed decimal(1) CHECK (
completed in (0, 1)
) DEFAULT 0 NOT NULL,
tech_start TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN,
tech_end TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END,
ts_id TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID,
PRIMARY KEY(native_id, assessment_id),
PERIOD SYSTEM_TIME (tech_start, tech_end)
)
Oracle
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_actions(
native_id varchar(36) NOT NULL,
assessment_id varchar(36) NOT NULL,
native_definition_id varchar(36) NOT NULL,
type varchar(36) NOT NULL,
completed decimal(1) DEFAULT 0 NOT NULL CHECK (
completed in (0, 1)
),
tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
PRIMARY KEY(native_id, assessment_id)
)
Serveur MS SQL
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_actions(
native_id varchar(36) NOT NULL,
assessment_id varchar(36) NOT NULL,
native_definition_id varchar(36) NOT NULL,
type varchar(36) NOT NULL,
completed decimal(1) CHECK (
completed in (0, 1)
) DEFAULT 0 NOT NULL,
tech_start DATETIME2 GENERATED ALWAYS AS ROW START NOT NULL,
tech_end DATETIME2 GENERATED ALWAYS AS ROW END NOT NULL,
ts_id DATETIME2 DEFAULT CURRENT_TIMESTAMP NOT NULL,
CONSTRAINT PK_sla_actions_globalschema PRIMARY KEY(native_id, assessment_id),
PERIOD FOR SYSTEM_TIME (tech_start, tech_end)
) WITH (
SYSTEM_VERSIONING = ON (
HISTORY_TABLE = "globalschema".hist_sla_actions
)
)
Tableau des définitions des règles SLA
Ce tableau contient des informations sur les définitions des règles SLA.
Ce tableau comporte les colonnes suivantes :
sla_rule_id- Identifiant unique de la règle SLA.name- Nom de la définition de la règle SLA.description- Description de la définition de la règle SLA.creator_id- Identifiant de l'utilisateur qui a créé la définition de la règle SLA.created_at- Horodatage de la création de la définition de la règle SLA.updater_id- Identifiant de l'utilisateur qui a mis à jour en dernier la définition de la règle SLA.updated_at- Horodatage de la dernière mise à jour de la définition de la règle SLA.
Postgres
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_rule_definitions(
sla_rule_id varchar(36) NOT NULL,
name varchar(256),
description text,
creator_id varchar(128) NOT NULL,
created_at timestamp(6) NOT NULL,
updater_id varchar(128),
updated_at timestamp(6),
tech_start TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) NOT NULL DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(sla_rule_id)
)
Db2
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_rule_definitions(
sla_rule_id varchar(36) NOT NULL,
name varchar(256),
description clob,
creator_id varchar(128) NOT NULL,
created_at timestamp(12) NOT NULL,
updater_id varchar(128),
updated_at timestamp(12),
tech_start TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN,
tech_end TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END,
ts_id TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID,
PRIMARY KEY(sla_rule_id),
PERIOD SYSTEM_TIME (tech_start, tech_end)
)
Oracle
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_rule_definitions(
sla_rule_id varchar(36) NOT NULL,
name varchar(256),
description clob,
creator_id varchar(128) NOT NULL,
created_at timestamp(6) NOT NULL,
updater_id varchar(128),
updated_at timestamp(6),
tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
PRIMARY KEY(sla_rule_id)
)
Serveur MS SQL
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_rule_definitions(
sla_rule_id varchar(36) NOT NULL,
name varchar(256),
description varchar(MAX),
creator_id varchar(128) NOT NULL,
created_at DATETIME2 NOT NULL,
updater_id varchar(128),
updated_at DATETIME2,
tech_start DATETIME2 GENERATED ALWAYS AS ROW START NOT NULL,
tech_end DATETIME2 GENERATED ALWAYS AS ROW END NOT NULL,
ts_id DATETIME2 DEFAULT CURRENT_TIMESTAMP NOT NULL,
CONSTRAINT PK_sla_rule_definitions_globalschema PRIMARY KEY(sla_rule_id),
PERIOD FOR SYSTEM_TIME (tech_start, tech_end)
) WITH (
SYSTEM_VERSIONING = ON (
HISTORY_TABLE = "globalschema".hist_sla_rule_definitions
)
)
Table sla_rule_def_filters
Ce tableau contient des informations sur les filtres de définition des règles SLA.
Ce tableau comporte les colonnes suivantes :
sla_rule_id- Identifiant unique de la règle SLA.filter_id- Identifiant unique pour les filtres de la règle SLA.type- Type de filtre (par exemple, nom, terme).value- Valeur du type.artifact_id- L'identifiant unique du terme. N'existera que si le type est un terme.is_children- Indique si la condition de la règle SLA s'applique à une colonne de l'actif.
Postgres
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_rule_def_filters(
sla_rule_id varchar(36) NOT NULL,
filter_id varchar(36) NOT NULL,
type varchar(16) NOT NULL,
value varchar(256) NOT NULL,
artifact_id varchar(128),
is_children decimal(1) CHECK (
is_children in (0, 1)
) DEFAULT 0 NOT NULL,
tech_start TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) NOT NULL DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(sla_rule_id, filter_id)
)
Db2
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_rule_def_filters(
sla_rule_id varchar(36) NOT NULL,
filter_id varchar(36) NOT NULL,
type varchar(16) NOT NULL,
value varchar(256) NOT NULL,
artifact_id varchar(128),
is_children decimal(1) CHECK (
is_children in (0, 1)
) DEFAULT 0 NOT NULL,
tech_start TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN,
tech_end TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END,
ts_id TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID,
PRIMARY KEY(sla_rule_id, filter_id),
PERIOD SYSTEM_TIME (tech_start, tech_end)
)
Oracle
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_rule_def_filters(
sla_rule_id varchar(36) NOT NULL,
filter_id varchar(36) NOT NULL,
type varchar(16) NOT NULL,
value varchar(256) NOT NULL,
artifact_id varchar(128),
is_children decimal(1) DEFAULT 0 NOT NULL CHECK (
is_children in (0, 1)
),
tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
PRIMARY KEY(sla_rule_id, filter_id)
)
Serveur MS SQL
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_rule_def_filters(
sla_rule_id varchar(36) NOT NULL,
filter_id varchar(36) NOT NULL,
type varchar(16) NOT NULL,
value varchar(256) NOT NULL,
artifact_id varchar(128),
is_children decimal(1) CHECK (
is_children in (0, 1)
) DEFAULT 0 NOT NULL,
tech_start DATETIME2 GENERATED ALWAYS AS ROW START NOT NULL,
tech_end DATETIME2 GENERATED ALWAYS AS ROW END NOT NULL,
ts_id DATETIME2 DEFAULT CURRENT_TIMESTAMP NOT NULL,
CONSTRAINT PK_sla_rule_def_filters_globalschema PRIMARY KEY(sla_rule_id, filter_id),
PERIOD FOR SYSTEM_TIME (tech_start, tech_end)
) WITH (
SYSTEM_VERSIONING = ON (
HISTORY_TABLE = "globalschema".hist_sla_rule_def_filters
)
)
Table sla_rule_def_conditions
Ce tableau contient des informations sur les conditions de définition des règles SLA.
Ce tableau comporte les colonnes suivantes :
sla_rule_id- Identifiant unique de la règle SLA.condition_id- Identifiant unique de la condition de la définition de la règle SLA.dimension_id- Identifiant unique de la dimension « qualité des données ».dimension_name- Nom de la dimension de qualité des données (par exemple, exhaustivité).threshold- Valeur numérique prédéfinie qui détermine si une condition est remplie, agissant comme une limite de conformité.is_children- Indique si la condition de la règle SLA s'applique à une colonne de l'actif.
Postgres
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_rule_def_conditions(
sla_rule_id varchar(36) NOT NULL,
condition_id varchar(36) NOT NULL,
dimension_id varchar(36) NOT NULL,
dimension_name varchar(128) NOT NULL,
threshold float,
is_children decimal(1) CHECK (
is_children in (0, 1)
) DEFAULT 0 NOT NULL,
tech_start TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) NOT NULL DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(sla_rule_id, condition_id)
)
Db2
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_rule_def_conditions(
sla_rule_id varchar(36) NOT NULL,
condition_id varchar(36) NOT NULL,
dimension_id varchar(36) NOT NULL,
dimension_name varchar(128) NOT NULL,
threshold float,
is_children decimal(1) CHECK (
is_children in (0, 1)
) DEFAULT 0 NOT NULL,
tech_start TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN,
tech_end TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END,
ts_id TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID,
PRIMARY KEY(sla_rule_id, condition_id),
PERIOD SYSTEM_TIME (tech_start, tech_end)
)
Oracle
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_rule_def_conditions(
sla_rule_id varchar(36) NOT NULL,
condition_id varchar(36) NOT NULL,
dimension_id varchar(36) NOT NULL,
dimension_name varchar(128) NOT NULL,
threshold float,
is_children decimal(1) DEFAULT 0 NOT NULL CHECK (
is_children in (0, 1)
),
tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
PRIMARY KEY(sla_rule_id, condition_id)
)
Serveur MS SQL
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_rule_def_conditions(
sla_rule_id varchar(36) NOT NULL,
condition_id varchar(36) NOT NULL,
dimension_id varchar(36) NOT NULL,
dimension_name varchar(128) NOT NULL,
threshold float,
is_children decimal(1) CHECK (
is_children in (0, 1)
) DEFAULT 0 NOT NULL,
tech_start DATETIME2 GENERATED ALWAYS AS ROW START NOT NULL,
tech_end DATETIME2 GENERATED ALWAYS AS ROW END NOT NULL,
ts_id DATETIME2 DEFAULT CURRENT_TIMESTAMP NOT NULL,
CONSTRAINT PK_sla_rule_def_conditions_globalschema PRIMARY KEY(sla_rule_id, condition_id),
PERIOD FOR SYSTEM_TIME (tech_start, tech_end)
) WITH (
SYSTEM_VERSIONING = ON (
HISTORY_TABLE = "globalschema".hist_sla_rule_def_conditions
)
)
Table sla_rule_def_actions
Ce tableau contient des informations sur les actions associées aux définitions des règles SLA.
Ce tableau comporte les colonnes suivantes :
sla_rule_id- Identifiant unique de la règle SLA.action_id- Identifiant unique pour l'action.type- Type de flux de travail.native_definition_name- Nom du type de flux de travail.native_definition_id- Identifiant unique pour le type de flux de travail.
Postgres
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_rule_def_actions(
sla_rule_id varchar(36) NOT NULL,
action_id varchar(36) NOT NULL,
type varchar(36) NOT NULL,
native_definition_name varchar(128) NOT NULL,
native_definition_id varchar(128) NOT NULL,
tech_start TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) NOT NULL DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(sla_rule_id, action_id)
)
Db2
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_rule_def_actions(
sla_rule_id varchar(36) NOT NULL,
action_id varchar(36) NOT NULL,
type varchar(36) NOT NULL,
native_definition_name varchar(128) NOT NULL,
native_definition_id varchar(128) NOT NULL,
tech_start TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW BEGIN,
tech_end TIMESTAMP(12) NOT NULL IMPLICITLY HIDDEN GENERATED ALWAYS AS ROW END,
ts_id TIMESTAMP(12) NOT NULL GENERATED ALWAYS AS TRANSACTION START ID,
PRIMARY KEY(sla_rule_id, action_id),
PERIOD SYSTEM_TIME (tech_start, tech_end)
)
Oracle
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_rule_def_actions(
sla_rule_id varchar(36) NOT NULL,
action_id varchar(36) NOT NULL,
type varchar(36) NOT NULL,
native_definition_name varchar(128) NOT NULL,
native_definition_id varchar(128) NOT NULL,
tech_start TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
tech_end TIMESTAMP(6) DEFAULT to_timestamp('9999-12-30', 'YYYY-MM-DD') NOT NULL,
ts_id TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
PRIMARY KEY(sla_rule_id, action_id)
)
Serveur MS SQL
Instruction CREATE TABLE :
CREATE TABLE "globalschema".sla_rule_def_actions(
sla_rule_id varchar(36) NOT NULL,
action_id varchar(36) NOT NULL,
type varchar(36) NOT NULL,
native_definition_name varchar(128) NOT NULL,
native_definition_id varchar(128) NOT NULL,
tech_start DATETIME2 GENERATED ALWAYS AS ROW START NOT NULL,
tech_end DATETIME2 GENERATED ALWAYS AS ROW END NOT NULL,
ts_id DATETIME2 DEFAULT CURRENT_TIMESTAMP NOT NULL,
CONSTRAINT PK_sla_rule_def_actions_globalschema PRIMARY KEY(sla_rule_id, action_id),
PERIOD FOR SYSTEM_TIME (tech_start, tech_end)
) WITH (
SYSTEM_VERSIONING = ON (
HISTORY_TABLE = "globalschema".hist_sla_rule_def_actions
)
)