Skip to content

Commit

Permalink
Fix trim and deduplicate tags deduplication (#4473)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend authored Jun 18, 2024
1 parent 2738e06 commit f266281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalog/dags/maintenance/trim_and_deduplicate_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def trim_and_deduplicate_tags():
)
)
FROM (
SELECT DISTINCT ON (tag->>'name', tag->'provider')
SELECT DISTINCT ON (trimmed_name, tag->'provider')
trim(tag->>'name') trimmed_name,
tag
FROM jsonb_array_elements({media_type}.tags || '[]'::jsonb) tag
Expand Down

0 comments on commit f266281

Please sign in to comment.