mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-24 09:50:01 +00:00
11 lines
364 B
SQL
11 lines
364 B
SQL
|
|
--update the timestamps to millis for dbt test results
|
|
UPDATE data_quality_data_time_series dqdts
|
|
SET dqdts.json = JSON_INSERT(
|
|
JSON_REMOVE(dqdts.json, '$.timestamp'),
|
|
'$.timestamp',
|
|
JSON_EXTRACT(dqdts.json, '$.timestamp') * 1000
|
|
)
|
|
WHERE dqdts.extension = 'testCase.testCaseResult'
|
|
AND JSON_EXTRACT(dqdts.json, '$.timestamp') REGEXP '^[0-9]{10}$'
|
|
; |