diff options
| author | Kapil Viren Ahuja <kvahuja@users.noreply.github.com> | 2017-02-21 08:52:32 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-21 08:52:32 +0530 |
| commit | 00b2d5161941aa9dab130a50783b8bd66b4a3dd1 (patch) | |
| tree | 1df324865462eedf89a3efd44d7f0282e55298da /queries | |
| parent | 7eb07c0ccf2f464e3936b24136e41471ff1c1ff7 (diff) | |
| parent | 9ae212a23754035be50e9125a7966544e2d525fb (diff) | |
| download | processor-00b2d5161941aa9dab130a50783b8bd66b4a3dd1.tar.gz processor-00b2d5161941aa9dab130a50783b8bd66b4a3dd1.zip | |
Merge pull request #16 from vainglorygame/jobs
Process partitions individually
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/match.sql | 8 | ||||
| -rw-r--r-- | queries/participant.sql | 4 | ||||
| -rw-r--r-- | queries/player.sql | 2 | ||||
| -rw-r--r-- | queries/roster.sql | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/queries/match.sql b/queries/match.sql index 4f82933..5dfa692 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 +FROM "match" diff --git a/queries/participant.sql b/queries/participant.sql index b7685a9..d1d81ce 100644 --- a/queries/participant.sql +++ b/queries/participant.sql @@ -1,7 +1,7 @@ SELECT id AS "apiId", -relationships->'player'->'data'->>'id' AS "player_apiId", +relationships->'player'->'data'->>'id' AS "playerId", 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" diff --git a/queries/player.sql b/queries/player.sql index add926a..992cb44 100644 --- a/queries/player.sql +++ b/queries/player.sql @@ -12,4 +12,4 @@ attributes->>'name' AS "name", 0 AS "streak" -FROM player +FROM "player" diff --git a/queries/roster.sql b/queries/roster.sql index b5c4dff..eaf0ed6 100644 --- a/queries/roster.sql +++ b/queries/roster.sql @@ -14,4 +14,4 @@ relationships->'participants'->'data'->0->>'id' AS "participant_1", relationships->'participants'->'data'->1->>'id' AS "participant_2", relationships->'participants'->'data'->2->>'id' AS "participant_3" -FROM roster +FROM "roster" |
