Skip to content

Commit

Permalink
Ensures the correct columns in repositories (#2376)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravenac95 authored Oct 21, 2024
1 parent 15bb81a commit 2e21c9d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ with ranked_repositories as (
license_spdx_id,
language,
ingestion_time,
created_at,
updated_at,
ROW_NUMBER()
over (partition by node_id order by ingestion_time desc, id asc)
as row_num
Expand All @@ -39,6 +41,8 @@ select
license_name,
license_spdx_id,
language,
ingestion_time
ingestion_time,
created_at,
updated_at
from ranked_repositories
where row_num = 1

0 comments on commit 2e21c9d

Please sign in to comment.