Tabelas de relatórios sobre importações e enriquecimento de metadados
Verifique as instruções Postgres, Db2 e Oracle nas tabelas relacionadas às importações e enriquecimentos de metadados.
| Área de assunto | Nome da tabela | Descrição |
|---|---|---|
| Importação e enriquecimento de metadados | importações de metadados | Metadata import informações. |
| Importação e enriquecimento de metadados | execuções de importação de metadados | A hora programada para a tarefa de importação de metadados. |
| Importação e enriquecimento de metadados | enriquecimentos de metadados | Informações sobre o enriquecimento de metadados. |
| Importação e enriquecimento de metadados | recurso_de_trabalho | Esta tabela contém informações sobre os recursos do trabalho. |
| Importação e enriquecimento de metadados | job_run_asset | Esta tabela contém informações sobre a execução de tarefas. |
tabela metadata_imports
Esta tabela contém informações sobre a importação de metadados.
Esta tabela possui as seguintes colunas:
metadata_import_id- Identificador para a importação de metadados.container_id- O identificador do projeto.metadata_import_name- O nome da importação de metadados.target_container_id- O identificador do projeto de destino.connection_id- O identificador da conexão na qual uma importação é criada.
Postgres
Instrução CREATE TABLE:
create table metadata_imports(metadata_import_id varchar(128) not null,
container_id varchar(128) not null,
metadata_import_name varchar(256) not null,
target_container_id varchar(128),
connection_id varchar(128),
metadata_enrichment_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(container_id,
metadata_import_id))
Instrução ALTER TABLE:
alter table metadata_imports add constraint fk_metadata_imports_container_assets_2 foreign key (container_id,
metadata_import_id) references container_assets(container_id,
asset_id) on
delete
cascade on
update
no action
Db2
Instrução CREATE TABLE:
create table metadata_imports(metadata_import_id varchar(128) not null,
container_id varchar(128) not null,
metadata_import_name varchar(256) not null,
target_container_id varchar(128),
connection_id varchar(128),
metadata_enrichment_id varchar(128),
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(container_id,
metadata_import_id),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row
Instrução ALTER TABLE:
alter table metadata_imports add constraint fk_metadata_imports_container_assets_2 foreign key (container_id,
metadata_import_id) references container_assets(container_id,
asset_id) on
delete
cascade on
update
no action
Oracle
Instrução CREATE TABLE:
CREATE TABLE metadata_imports(metadata_import_id varchar(128) NOT NULL,
container_id varchar(128) NOT NULL,
metadata_import_name varchar(256) NOT NULL,
target_container_id varchar(128),
connection_id varchar(128),
metadata_enrichment_id varchar(128),
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(container_id,
metadata_import_id))
Instrução ALTER TABLE:
ALTER TABLE metadata_imports ADD CONSTRAINT fk_metadata_imports_container_assets_2 FOREIGN KEY (container_id,
metadata_import_id) REFERENCES container_assets(container_id,
asset_id) ON
DELETE
CASCADE
tabela metadata_import_executions
Esta tabela contém informações sobre a tarefa de importação de metadados.
Esta tabela possui as seguintes colunas:
metadata_import_id- Identificador para a importação de metadados.container_id- O identificador do projeto.job_run_id- O identificador da execução da tarefa.invoked_by- O ID da pessoa que iniciou o processo.is_scheduled_run- A hora programada para a tarefa de importação de metadados.start_time- A hora de início da tarefa de importação de metadados.end_time- A hora de término da tarefa de importação de metadados.state- O estado da tarefa de importação de metadados.count_discovered- O número de ativos identificados.count_discovered_with_children- O número de ativos com subelementos que foi identificado.count_submitted- O número de ativos identificados.count_succeeded- O número de recursos importados com sucesso.count_succedded_with_children- O número de recursos com elementos secundários que foram importados com sucesso.count_new_assets- O número de novos ativos.count_updated_assets- O número de ativos atualizados.count_deleted_assets- O número de ativos excluídos.
Postgres
Instrução CREATE TABLE:
create table metadata_import_executions(metadata_import_id varchar(128) not null,
container_id varchar(36) not null,
job_run_id varchar(128) not null,
invoked_by varchar(128) not null,
is_scheduled_run boolean not null,
start_time timestamp(6) not null,
end_time timestamp(6),
state varchar(32) not null,
count_discovered bigint default 0 not null,
count_discovered_with_children bigint default 0 not null,
count_submitted bigint default 0 not null,
count_succeeded bigint default 0 not null,
count_succedded_with_children bigint default 0 not null,
count_new_assets bigint default 0 not null,
count_updated_assets bigint default 0 not null,
count_deleted_assets bigint 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(container_id,
metadata_import_id,
job_run_id))
Instruções ALTER TABLE:
alter table metadata_import_executions add constraint fk_metadata_import_executions_metadata_imports_3 foreign key (container_id,
metadata_import_id) references metadata_imports(container_id,
metadata_import_id) on
delete
cascade on
update
no action
alter table metadata_import_executions add constraint fk_metadata_import_executions_container_assets_4 foreign key (container_id,
job_run_id) references container_assets(container_id,
asset_id) on
delete
cascade on
update
no action
Db2
Instrução CREATE TABLE:
create table metadata_import_executions(metadata_import_id varchar(128) not null,
container_id varchar(36) not null,
job_run_id varchar(128) not null,
invoked_by varchar(128) not null,
is_scheduled_run boolean not null,
start_time timestamp(12) not null,
end_time timestamp(12),
state varchar(32) not null,
count_discovered bigint default 0 not null,
count_discovered_with_children bigint default 0 not null,
count_submitted bigint default 0 not null,
count_succeeded bigint default 0 not null,
count_succedded_with_children bigint default 0 not null,
count_new_assets bigint default 0 not null,
count_updated_assets bigint default 0 not null,
count_deleted_assets bigint 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(container_id,
metadata_import_id,
job_run_id),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row
Instruções ALTER TABLE:
alter table metadata_import_executions add constraint fk_metadata_import_executions_metadata_imports_3 foreign key (container_id,
metadata_import_id) references metadata_imports(container_id,
metadata_import_id) on
delete
cascade on
update
no action
alter table metadata_import_executions add constraint fk_metadata_import_executions_container_assets_4 foreign key (container_id,
job_run_id) references container_assets(container_id,
asset_id) on
delete
cascade on
update
no action
Oracle
Instrução CREATE TABLE:
CREATE TABLE metadata_import_executions(metadata_import_id varchar(128) NOT NULL,
container_id varchar(36) NOT NULL,
job_run_id varchar(128) NOT NULL,
invoked_by varchar(128) NOT NULL,
is_scheduled_run decimal(1) NOT NULL,
start_time timestamp(6) NOT NULL,
end_time timestamp(6),
state varchar(32) NOT NULL,
count_discovered NUMBER(19) DEFAULT 0 NOT NULL,
count_discovered_with_children NUMBER(19) DEFAULT 0 NOT NULL,
count_submitted NUMBER(19) DEFAULT 0 NOT NULL,
count_succeeded NUMBER(19) DEFAULT 0 NOT NULL,
count_succedded_with_children NUMBER(19) DEFAULT 0 NOT NULL,
count_new_assets NUMBER(19) DEFAULT 0 NOT NULL,
count_updated_assets NUMBER(19) DEFAULT 0 NOT NULL,
count_deleted_assets NUMBER(19) DEFAULT 0 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(container_id,
metadata_import_id,
job_run_id))
Instruções ALTER TABLE:
ALTER TABLE metadata_import_executions ADD CONSTRAINT fk_metadata_import_executions_metadata_imports_3 FOREIGN KEY (container_id,
metadata_import_id) REFERENCES metadata_imports(container_id,
metadata_import_id) ON
DELETE
CASCADE
ALTER TABLE metadata_import_executions ADD CONSTRAINT fk_metadata_import_executions_container_assets_4 FOREIGN KEY (container_id,
job_run_id) REFERENCES container_assets(container_id,
asset_id) ON
DELETE
CASCADE
tabela metadata_enrichments
Esta tabela contém informações sobre os enriquecimentos de metadados.
Esta tabela possui as seguintes colunas:
metadata_enrichment_id- Identificador para o enriquecimento de metadados.container_id- O identificador do projeto.metadata_enrichment_name- O nome do enriquecimento de metadados.
Postgres
Instrução CREATE TABLE:
create table metadata_enrichments(metadata_enrichment_id varchar(128) not null,
container_id varchar(36) not null,
metadata_enrichment_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(container_id,
metadata_enrichment_id))
Instrução ALTER TABLE:
alter table metadata_enrichments add constraint fk_metadata_enrichments_container_assets_1 foreign key (container_id,
metadata_enrichment_id) references container_assets(container_id,
asset_id) on
delete
cascade on
update
no action
Db2
Instrução CREATE TABLE:
create table metadata_enrichments(metadata_enrichment_id varchar(128) not null,
container_id varchar(36) not null,
metadata_enrichment_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(container_id,
metadata_enrichment_id),
period SYSTEM_TIME (tech_start,
tech_end) ) ORGANIZE by row
Instrução ALTER TABLE:
alter table metadata_enrichments add constraint fk_metadata_enrichments_container_assets_1 foreign key (container_id,
metadata_enrichment_id) references container_assets(container_id,
asset_id) on
delete
cascade on
update
no action
Oracle
Instrução CREATE TABLE:
CREATE TABLE metadata_enrichments(metadata_enrichment_id varchar(128) NOT NULL,
container_id varchar(36) NOT NULL,
metadata_enrichment_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(container_id,
metadata_enrichment_id))
Instrução ALTER TABLE:
ALTER TABLE metadata_enrichments ADD CONSTRAINT fk_metadata_enrichments_container_assets_1 FOREIGN KEY (container_id,
metadata_enrichment_id) REFERENCES container_assets(container_id,
asset_id) ON
DELETE
CASCADE
tabela job_asset
Esta tabela contém informações sobre os recursos do trabalho.
Esta tabela possui as seguintes colunas:
container_id- O identificador do contêiner (catálogo ou projeto) no qual o ativo está localizado.asset_id- O identificador do ativo de dados.version- Indica a versão do recurso da tarefa.job_name- O nome do recurso de tarefa.asset_ref_type- Especifica o tipo de ativo para o qual a tarefa é criada.asset_ref- Identificador do ativo em questão.schedule- Define quando a tarefa é executada (por exemplo, 0 0 * * *).schedule_info- Metadados adicionais sobre a programação, como data de início e data de término.last_run_status_timestamp- Data e hora da execução mais recente da tarefa.future_scheduled_runs- Uma lista ou matriz com os próximos horários de execução programados para a tarefa.enable_notifications- Indicador booleano para determinar se as notificações devem ser ativadas para alterações.project_name- O nome do projeto.schedule_id- Identificador único da própria programação, permitindo que várias tarefas façam referência à mesma configuração de programação.schedule_creator_id- Identificador do usuário que criou a programação.
Postgres
Instrução CREATE TABLE:
CREATE TABLE "globalschema".job_asset(
container_id varchar(36) NOT NULL,
asset_id varchar(128) NOT NULL,
version integer NOT NULL,
job_name varchar(256) NOT NULL,
asset_ref_type varchar(256),
asset_ref varchar(36),
schedule varchar(36),
schedule_info jsonb,
last_run_status_timestamp timestamp(6),
future_scheduled_runs jsonb,
enable_notifications decimal(1) CHECK (
enable_notifications in (0, 1)
) NOT NULL,
project_name varchar(256) NOT NULL,
schedule_id varchar(36),
schedule_creator_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(container_id, asset_id)
)
Db2
Instrução CREATE TABLE:
CREATE TABLE "globalschema".job_asset(
container_id varchar(36) NOT NULL,
asset_id varchar(128) NOT NULL,
version integer NOT NULL,
job_name varchar(256) NOT NULL,
asset_ref_type varchar(256),
asset_ref varchar(36),
schedule varchar(36),
schedule_info clob,
last_run_status_timestamp timestamp(12),
future_scheduled_runs clob,
enable_notifications decimal(1) CHECK (
enable_notifications in (0, 1)
) NOT NULL,
project_name varchar(256) NOT NULL,
schedule_id varchar(36),
schedule_creator_id varchar(128),
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(container_id, asset_id),
PERIOD SYSTEM_TIME (tech_start, tech_end)
)
Oracle
Instrução CREATE TABLE:
CREATE TABLE "globalschema".job_asset(
container_id varchar(36) NOT NULL,
asset_id varchar(128) NOT NULL,
version integer NOT NULL,
job_name varchar(256) NOT NULL,
asset_ref_type varchar(256),
asset_ref varchar(36),
schedule varchar(36),
schedule_info clob,
last_run_status_timestamp timestamp(6),
future_scheduled_runs clob,
enable_notifications decimal(1) NOT NULL CHECK (
enable_notifications in (0, 1)
),
project_name varchar(256) NOT NULL,
schedule_id varchar(36),
schedule_creator_id varchar(128),
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(container_id, asset_id)
)
MS SQL server
Instrução CREATE TABLE:
CREATE TABLE "globalschema".job_asset(
container_id varchar(36) NOT NULL,
asset_id varchar(128) NOT NULL,
version integer NOT NULL,
job_name varchar(256) NOT NULL,
asset_ref_type varchar(256),
asset_ref varchar(36),
schedule varchar(36),
schedule_info varchar(MAX),
last_run_status_timestamp DATETIME2,
future_scheduled_runs varchar(MAX),
enable_notifications decimal(1) CHECK (
enable_notifications in (0, 1)
) NOT NULL,
project_name varchar(256) NOT NULL,
schedule_id varchar(36),
schedule_creator_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_job_asset_globalschema PRIMARY KEY(container_id, asset_id),
PERIOD FOR SYSTEM_TIME (tech_start, tech_end)
) WITH (
SYSTEM_VERSIONING = ON (
HISTORY_TABLE = "globalschema".hist_job_asset
)
)
tabela job_run_asset
Esta tabela contém informações sobre a execução de tarefas.
Esta tabela possui as seguintes colunas:
container_id- O identificador do contêiner (catálogo ou projeto) no qual o ativo está localizado.asset_id- O identificador do ativo de dados.version- Indica a versão do recurso da tarefa.job_name- O nome do recurso de tarefa.job_ref- Um ID de referência associado à vaga.job_type- Especifica o tipo de ativo para o qual a execução da tarefa é criada.state- O status do recurso de execução da tarefa ( E.g Em execução, Concluída, Falha).isScheduledRun- Indica se a execução foi acionada por uma programação ou manualmente.project_name- O nome do projeto.last_state_change_timestamp- Carimbo de data/hora da atualização de estado mais recente.duration- Tempo necessário para a conclusão da execução da tarefa.
Postgres
Instrução CREATE TABLE:
CREATE TABLE "globalschema".job_run_asset(
container_id varchar(36) NOT NULL,
asset_id varchar(128) NOT NULL,
job_ref varchar(36) NOT NULL,
version integer NOT NULL,
job_name varchar(256) NOT NULL,
job_type varchar(256) NOT NULL,
state varchar(32),
isScheduledRun decimal(1) CHECK (
isScheduledRun in (0, 1)
),
project_name varchar(256) NOT NULL,
last_state_change_timestamp timestamp(6) NOT NULL,
duration integer 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(container_id, asset_id, job_ref)
)
Db2
Instrução CREATE TABLE:
CREATE TABLE "globalschema".job_run_asset(
container_id varchar(36) NOT NULL,
asset_id varchar(128) NOT NULL,
job_ref varchar(36) NOT NULL,
version integer NOT NULL,
job_name varchar(256) NOT NULL,
job_type varchar(256) NOT NULL,
state varchar(32),
isScheduledRun decimal(1) CHECK (
isScheduledRun in (0, 1)
),
project_name varchar(256) NOT NULL,
last_state_change_timestamp timestamp(12) NOT NULL,
duration integer 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(container_id, asset_id, job_ref),
PERIOD SYSTEM_TIME (tech_start, tech_end)
)
Oracle
Instrução CREATE TABLE:
CREATE TABLE "globalschema".job_run_asset(
container_id varchar(36) NOT NULL,
asset_id varchar(128) NOT NULL,
job_ref varchar(36) NOT NULL,
version integer NOT NULL,
job_name varchar(256) NOT NULL,
job_type varchar(256) NOT NULL,
state varchar(32),
isScheduledRun decimal(1) CHECK (
isScheduledRun in (0, 1)
),
project_name varchar(256) NOT NULL,
last_state_change_timestamp timestamp(6) NOT NULL,
duration integer 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(container_id, asset_id, job_ref)
)
MS SQL server
Instrução CREATE TABLE:
CREATE TABLE "globalschema".job_run_asset (
container_id varchar(36) NOT NULL,
asset_id varchar(128) NOT NULL,
job_ref varchar(36) NOT NULL,
version integer NOT NULL,
job_name varchar(256) NOT NULL,
job_type varchar(256) NOT NULL,
state varchar(32),
isScheduledRun decimal(1) CHECK (isScheduledRun in (0, 1)),
project_name varchar(256) NOT NULL,
last_state_change_timestamp DATETIME2 NOT NULL,
duration integer 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_job_run_asset_globalschema
PRIMARY KEY (container_id, asset_id, job_ref),
PERIOD FOR SYSTEM_TIME (tech_start, tech_end)
WITH (SYSTEM_VERSIONING = ON (HISTORY_TABLE = "globalschema".hist_job_run_asset))
);