[MINOR] partition migration issue with redshift servics (#16452)

* fix: partition migration issue with redshift servics

* chore: typo in sql comment
This commit is contained in:
Teddy 2024-05-29 10:49:27 +02:00 committed by GitHub
parent 029370205f
commit 451d73593e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,5 @@
-- Fix hanging partition migration
-- in 1.4.x `tablePartition.intervalType` should not exists
UPDATE table_entity
SET json = JSON_REMOVE(json, '$.tablePartition')
WHERE JSON_EXTRACT(json, '$.tablePartition.intervalType') IS NOT NULL;

View file

@ -0,0 +1,5 @@
-- Fix hanging partition migration
-- in 1.4.x `tablePartition.intervalType` should not exists
UPDATE table_entity
SET json = json - 'tablePartition'
WHERE json->'tablePartition'->'intervalType' is not null;