summaryrefslogtreecommitdiff
path: root/queries
diff options
context:
space:
mode:
Diffstat (limited to 'queries')
-rw-r--r--queries/match.sql6
-rw-r--r--queries/participant.sql4
2 files changed, 5 insertions, 5 deletions
diff --git a/queries/match.sql b/queries/match.sql
index 5dfa692..a07652f 100644
--- a/queries/match.sql
+++ b/queries/match.sql
@@ -7,9 +7,9 @@ attributes->>'gameMode' AS "gameMode",
COALESCE(NULLIF(attributes->>'patchVersion', ''), '0') AS "patchVersion",
attributes->>'shardId' AS "shardId",
attributes->'stats'->>'endGameReason' AS "endGameReason",
-attributes->'stats'->>'queue' AS "queue" --,
+attributes->'stats'->>'queue' AS "queue" ,
---relationships->'rosters'->'data'->0->>'id' as "roster_1",
---relationships->'rosters'->'data'->1->>'id' as "roster_2"
+relationships->'rosters'->'data'->0->>'id' as "roster_1",
+relationships->'rosters'->'data'->1->>'id' as "roster_2"
FROM "match"
diff --git a/queries/participant.sql b/queries/participant.sql
index d1d81ce..b7685a9 100644
--- a/queries/participant.sql
+++ b/queries/participant.sql
@@ -1,7 +1,7 @@
SELECT
id AS "apiId",
-relationships->'player'->'data'->>'id' AS "playerId",
+relationships->'player'->'data'->>'id' AS "player_apiId",
attributes->>'actor' AS "hero",
(attributes->'stats'->>'assists')::int AS "assists",
@@ -25,4 +25,4 @@ attributes->'stats'->'itemSells' AS "itemSells",
attributes->'stats'->'itemUses' AS "itemUses",
attributes->'stats'->'items' AS "items"
-FROM "participant"
+FROM participant