bf2343b7e4
Integration Tests - MySQL + Elasticsearch / Detect Changes (push) Has been cancelled
Integration Tests - MySQL + Elasticsearch / integration-tests-mysql-elasticsearch (push) Has been cancelled
Integration Tests - PostgreSQL + Elasticsearch + Redis / Detect Changes (push) Has been cancelled
Integration Tests - PostgreSQL + Elasticsearch + Redis / integration-tests-postgres-elasticsearch-redis (push) Has been cancelled
Integration Tests - PostgreSQL + OpenSearch / Detect Changes (push) Has been cancelled
Integration Tests - PostgreSQL + OpenSearch / integration-tests-postgres-opensearch (push) Has been cancelled
Java Checkstyle / java-checkstyle (push) Has been cancelled
Maven Collate Tests / maven-collate-ci (push) Has been cancelled
OpenMetadata Service Unit Tests / openmetadata-service-unit-tests-status (push) Has been cancelled
Publish Package to Maven Central Repository / publish-maven-packages (push) Has been cancelled
OpenMetadata Service Unit Tests / Detect Changes (push) Has been cancelled
OpenMetadata Service Unit Tests / openmetadata-service-unit-tests (push) Has been cancelled
OpenMetadata Service Unit Tests / k8s_operator-unit-tests (push) Has been cancelled
47 lines
1.6 KiB
SQL
47 lines
1.6 KiB
SQL
-- add timestamp index for test case result reindex performance
|
|
CREATE INDEX idx_timestamp_desc ON data_quality_data_time_series (timestamp DESC);
|
|
|
|
CREATE TABLE background_jobs (
|
|
id BIGSERIAL PRIMARY KEY,
|
|
jobType VARCHAR(256) NOT NULL,
|
|
methodName VARCHAR(256) NOT NULL,
|
|
jobArgs JSONB NOT NULL,
|
|
status VARCHAR(50) NOT NULL DEFAULT 'PENDING',
|
|
createdBy VARCHAR(256) NOT NULL,
|
|
createdAt BIGINT NOT NULL DEFAULT (EXTRACT(EPOCH FROM NOW()) * 1000)::BIGINT,
|
|
updatedAt BIGINT NOT NULL DEFAULT (EXTRACT(EPOCH FROM NOW()) * 1000)::BIGINT
|
|
);
|
|
|
|
CREATE INDEX idx_status_createdAt ON background_jobs (status, createdAt);
|
|
CREATE INDEX idx_createdBy ON background_jobs (createdBy);
|
|
CREATE INDEX idx_status ON background_jobs (status);
|
|
CREATE INDEX idx_jobType ON background_jobs (jobType);
|
|
CREATE INDEX idx_updatedAt ON background_jobs (updatedAt);
|
|
|
|
-- rename executable -> basic for test suites
|
|
UPDATE test_suite
|
|
SET json = jsonb_set(
|
|
json::jsonb #- '{executable}',
|
|
'{basic}',
|
|
(json #> '{executable}')::jsonb,
|
|
true
|
|
)
|
|
WHERE json #>> '{executable}' IS NOT NULL;
|
|
|
|
-- rename executableEntityReference -> basicEntityReference for test suites
|
|
UPDATE test_suite
|
|
SET json = jsonb_set(
|
|
json::jsonb #- '{executableEntityReference}',
|
|
'{basicEntityReference}',
|
|
(json #> '{executableEntityReference}')::jsonb,
|
|
true
|
|
)
|
|
WHERE json #>> '{executableEntityReference}' IS NOT NULL;
|
|
|
|
-- clean up the testSuites
|
|
UPDATE test_case SET json = json::jsonb #- '{testSuites}';
|
|
|
|
-- clean up the testSuites in the version history too
|
|
UPDATE entity_extension SET json = json::jsonb #- '{testSuites}' WHERE jsonSchema = 'testCase';
|
|
|