From 0a21bfc794362c17f6dda265b753a88de09e2b7d Mon Sep 17 00:00:00 2001 From: Krystle Salazar Date: Mon, 16 Sep 2024 15:12:30 -0400 Subject: [PATCH] Fix `add_license_url` DAG for last items (#4839) --- catalog/dags/maintenance/add_license_url.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalog/dags/maintenance/add_license_url.py b/catalog/dags/maintenance/add_license_url.py index 455e1ce44b..5ed1049660 100644 --- a/catalog/dags/maintenance/add_license_url.py +++ b/catalog/dags/maintenance/add_license_url.py @@ -136,7 +136,7 @@ def get_license_conf(license_info) -> dict: f"AND meta_data->>'license_url' IS NULL" ), # Merge existing metadata with the new license_url - "update_query": f"SET updated_on = NOW(), meta_data = ({Json(license_url_dict)}::jsonb || meta_data)", + "update_query": f"SET updated_on = NOW(), meta_data = (meta_data || {Json(license_url_dict)}::jsonb)", "update_timeout": 259200, # 3 days in seconds "dry_run": False, "resume_update": False,