From 4ae7e61d74b1265f8a8ef894b75d0b5a199c5916 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 6 Nov 2024 09:43:04 -0600 Subject: [PATCH] Update scripts/update_source_data_schema_changelog.py Co-authored-by: chowbao --- scripts/update_source_data_schema_changelog.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/update_source_data_schema_changelog.py b/scripts/update_source_data_schema_changelog.py index a80815d2..6d6c231e 100644 --- a/scripts/update_source_data_schema_changelog.py +++ b/scripts/update_source_data_schema_changelog.py @@ -30,10 +30,9 @@ def sort_schema_changes(schema_changes: {}) -> {}: sorted_data = {} for table_name, op_types in sorted(schema_changes.items()): - sorted_operations = { + sorted_data[table_name] = { op_type: sorted(columns) for op_type, columns in sorted(op_types.items()) } - sorted_data[table_name] = sorted_operations return sorted_data