chore: import upstream snapshot with attribution
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
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
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
UPDATE test_case
|
||||
SET json = json || jsonb_build_object('createdBy', json->>'updatedBy')
|
||||
WHERE json->>'createdBy' IS NULL;
|
||||
|
||||
-- Made httpPath a required field for Databricks, updating records
|
||||
-- where httpPath is NULL or missing to an empty string.
|
||||
UPDATE
|
||||
dbservice_entity
|
||||
SET
|
||||
json = jsonb_set(
|
||||
json,
|
||||
'{connection,config,httpPath}',
|
||||
'""' :: jsonb,
|
||||
true
|
||||
)
|
||||
WHERE
|
||||
serviceType = 'Databricks'
|
||||
AND (
|
||||
NOT jsonb_path_exists(json, '$.connection.config.httpPath')
|
||||
OR (json -> 'connection' -> 'config' ->> 'httpPath') IS NULL
|
||||
OR (json -> 'connection' -> 'config' ->> 'httpPath') = 'null'
|
||||
);
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
UPDATE workflow_definition_entity
|
||||
SET json = json - 'type'
|
||||
WHERE json->>'type' IS NOT NULL;
|
||||
|
||||
-- Add status column to WorkflowInstances and WorkflowInstanceStates
|
||||
-- entityLink is generated through variables->global_relatedEntity due to the following reasons:
|
||||
-- 1. Flowable shares state through variables that get written into the database and we are persisting those
|
||||
-- 2. We are using a namespace system to define from which "Node" the variable should be fetched
|
||||
-- 3. We are saving the entityLink that triggers the workflow on the `relatedEntity` variable, within the `global` namespace
|
||||
ALTER TABLE workflow_instance_time_series
|
||||
ADD COLUMN status VARCHAR(20)
|
||||
GENERATED ALWAYS AS (json ->> 'status') STORED;
|
||||
|
||||
ALTER TABLE workflow_instance_time_series
|
||||
ADD COLUMN exceptionStacktrace TEXT
|
||||
GENERATED ALWAYS AS (json ->> 'exception') STORED;
|
||||
|
||||
ALTER TABLE workflow_instance_time_series
|
||||
ADD COLUMN entityLink VARCHAR(255) GENERATED ALWAYS AS
|
||||
((json -> 'variables' ->> 'global_relatedEntity')) STORED;
|
||||
|
||||
|
||||
ALTER TABLE workflow_instance_state_time_series
|
||||
ADD COLUMN status VARCHAR(20)
|
||||
GENERATED ALWAYS AS (json ->> 'status') STORED;
|
||||
|
||||
ALTER TABLE workflow_instance_state_time_series
|
||||
ADD COLUMN exceptionStacktrace TEXT
|
||||
GENERATED ALWAYS AS (json ->> 'exception') STORED;
|
||||
|
||||
-- Query Cost History Time Series
|
||||
CREATE TABLE query_cost_time_series (
|
||||
id varchar(36) GENERATED ALWAYS AS (json ->> 'id') STORED NOT NULL,
|
||||
cost real GENERATED ALWAYS AS ((json ->> 'cost')::real) STORED NOT NULL,
|
||||
count float GENERATED ALWAYS AS ((json ->> 'count')::float) STORED NOT NULL,
|
||||
timestamp bigint GENERATED ALWAYS AS ((json ->> 'timestamp')::bigint) STORED NOT NULL,
|
||||
jsonSchema varchar(256) NOT NULL,
|
||||
json jsonb NOT NULL,
|
||||
entityFQNHash varchar(768) COLLATE "C" DEFAULT NULL,
|
||||
CONSTRAINT query_cost_unique_constraint UNIQUE (timestamp, entityFQNHash)
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS query_cost_time_series_id on query_cost_time_series (id);
|
||||
CREATE INDEX IF NOT EXISTS query_cost_time_series_id_timestamp on test_case_resolution_status_time_series (id, timestamp);
|
||||
|
||||
UPDATE workflow_definition_entity
|
||||
SET json = jsonb_set(json, '{trigger,type}', '"eventBasedEntity"')
|
||||
WHERE json->'trigger'->>'type' in ('eventBasedEntityTrigger', 'eventBasedEntityWorkflow');
|
||||
|
||||
UPDATE workflow_definition_entity
|
||||
SET json = jsonb_set(json, '{trigger,type}', '"periodicBatchEntity"')
|
||||
WHERE json->'trigger'->>'type' in ('periodicBatchEntityTrigger', 'periodicBatchEntityWorkflow');
|
||||
|
||||
DELETE FROM apps_extension_time_series;
|
||||
Reference in New Issue
Block a user