Tabelas de relatório de importações e enriquecimentos de metadados
Verifique as instruções Postgres, Db2 para as tabelas relacionadas a importações e enriquecimentos de metadados.
| Área de assunto | Nome da tabela | Descrição |
|---|---|---|
| Importação e enriquecimento de metadados | metadata_importe | Metadata import . |
| Importação e enriquecimento de metadados | metadata_import_execuções | O horário planejado da tarefa de importação de metadados |
| Importação e enriquecimento de metadados | metadata_enriquecimento | Informações de enriquecimento de metadados. |
| Importação e enriquecimento de metadados | ativo_trabalho | Essa tabela contém informações sobre ativos de trabalho. |
| Importação e enriquecimento de metadados | ativo_de_execução_do_trabalho | Essa tabela contém informações sobre a execução de trabalhos. |
tabela metadata_importe
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 metadadostarget_container_id-O identificador do projeto de destinoconnection_id-O identificador de conexão no 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
Tabela metadata_import_execuções
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 tarefainvoked_by-O ID da pessoa que iniciou.is_scheduled_run-O horário planejado da tarefa para a tarefa de importação de metadadosstart_time-O horário de início da tarefa para a tarefa de importação de metadadosend_time-O horário de encerramento da tarefa para a tarefa de importar metadados.state-O estado da tarefa de importação de metadadoscount_discovered-O número de ativos descobertos.count_discovered_with_children-O número de ativos com filhos descobertos.count_submitted-O número de ativos descobertos.count_succeeded-O número de ativos que foram importados com sucessocount_succedded_with_children-O número de ativos com filhos que foram importados com sucessocount_new_assets-O número de novos ativoscount_updated_assets-O número de ativos atualizadoscount_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
tabela metadata_enriquecments
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 metadadoscontainer_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
tabela job_asset
Essa tabela contém informações sobre ativos de trabalho.
Esta tabela possui as seguintes colunas:
container_id- O identificador do contêiner (catálogo ou projeto) no qual o ativo existe.asset_id- O identificador do ativo de dados.version- Indica a versão do ativo de trabalho.job_name- O nome do ativo de trabalho.asset_ref_type- Especifica o tipo de ativo para o qual o trabalho é criado.asset_ref- Identificador do ativo real.schedule- Define quando o trabalho é executado (por exemplo, 0 0 * * * *).schedule_info- Metadados adicionais sobre a programação, como início em, fim em.last_run_status_timestamp- Registro de data e hora da execução mais recente do trabalho.future_scheduled_runs- Uma lista ou matriz dos próximos horários de execução programados para o trabalho.enable_notifications- Sinalizador booleano para determinar se as notificações precisam ser ativadas para alterações.project_name- O nome do projeto.schedule_id- Identificador exclusivo do próprio agendamento, permitindo que vários trabalhos façam referência à mesma configuração de agendamento.schedule_creator_id- Identificador do usuário que criou a agenda.
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)
)
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
Essa tabela contém informações sobre a execução de trabalhos.
Esta tabela possui as seguintes colunas:
container_id- O identificador do contêiner (catálogo ou projeto) no qual o ativo existe.asset_id- O identificador do ativo de dados.version- Indica a versão do ativo de trabalho.job_name- O nome do ativo de trabalho.job_ref- Uma ID de referência vinculada ao trabalho.job_type- Especifica o tipo de ativo para o qual o job run é criado.state- O status do ativo de execução do trabalho ( E.g Running, Completed, FAILED).isScheduledRun- Indica se a execução foi acionada por uma programação ou manualmente.project_name- Armazena o nome do projeto para acompanhamento do trabalho (256 caracteres, pode ser nulo).last_state_change_timestamp- Registro de data e hora da atualização de estado mais recente.duration- Tempo necessário para a conclusão da execução do trabalho.
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),
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),
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)
)
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),
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))
);