You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run into it when I was performing data analysis. There are matches that contain multiple entries in teiserver_game_rating_logs for the same match, for example match_id=2283667 from 2024-03-09. There are 120 games like this, one game is even rated 4 times.
Reproduce the bug
Query to run e.g. on integration server to pull match ids:
WITH
dups AS (
SELECTcount(*) AS c,
match_id,
user_id
FROM
teiserver_game_rating_logs tgrl
GROUP BY
match_id,
user_id
HAVINGcount(*) >1
),
dups_per_match AS (
SELECTmax(c) AS c,
match_id
FROM
dups
GROUP BY
match_id
),
top_dup_matches AS (
SELECTtbm.id,
tbm.started,
c AS duplicates
FROM
dups_per_match dpm
JOIN teiserver_battle_matches tbm ONdpm.match_id=tbm.idORDER BY
duplicates DESC,
tbm.startedDESC
)
SELECT*FROM
top_dup_matches;
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the Bug
Run into it when I was performing data analysis. There are matches that contain multiple entries in
teiserver_game_rating_logs
for the same match, for examplematch_id=2283667
from 2024-03-09. There are 120 games like this, one game is even rated 4 times.Reproduce the bug
Query to run e.g. on integration server to pull match ids:
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: