Skip to content

Instantly share code, notes, and snippets.

@pmbrull
Created November 8, 2023 05:56
Show Gist options
  • Save pmbrull/2b492f9d75eb51084061ed39b669db6c to your computer and use it in GitHub Desktop.
Save pmbrull/2b492f9d75eb51084061ed39b669db6c to your computer and use it in GitHub Desktop.
OpenMetadata Release 1.2.0 - Postgres Ingestion Pipeline Migration Fix
UPDATE ingestion_pipeline_entity
SET json = jsonb_set(
json::jsonb #- '{sourceConfig,config,viewParsingTimeoutLimit}',
'{sourceConfig,config,queryParsingTimeoutLimit}',
(json #> '{sourceConfig,config,viewParsingTimeoutLimit}')::jsonb,
true
)
WHERE json #>> '{pipelineType}' = 'metadata'
AND json #>> '{sourceConfig,config,type}' = 'DatabaseMetadata';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment