Skip to content

Commit 3863187

Browse files
committed
Remove unnecessary CASTs for show_id and episode_id in Apple charts queries
1 parent 7abc777 commit 3863187

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

db_schema/queries/v1/chartsRankings.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ UNION ALL
4747
SELECT
4848
'apple' AS platform,
4949
'podcast' AS item_type,
50-
CAST(apc.id AS CHAR) AS show_id,
50+
apc.id AS show_id,
5151
NULL AS episode_id,
5252
apc.country AS market,
5353
ag.name AS chart_name,
@@ -65,10 +65,10 @@ UNION ALL
6565
SELECT
6666
'apple' AS platform,
6767
'episode' AS item_type,
68-
CAST(aec.podcast_id AS CHAR) AS show_id,
69-
CAST(aec.episode_id AS CHAR) AS episode_id,
68+
aec.podcast_id AS show_id,
69+
aec.episode_id AS episode_id,
7070
aec.country AS market,
71-
ag.name AS chart_name,
71+
ag.name AS chart_name,
7272
aec.position AS position,
7373
aec.date AS chart_date
7474
FROM openpodcast_charts.apple_episode_charts aec

0 commit comments

Comments
 (0)