Skip to content

Commit

Permalink
Remove deprecated SQL group by column number syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jdorn committed Mar 7, 2022
1 parent dbae7e1 commit 330df9e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/back-end/src/integrations/SqlIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ export default abstract class SqlIntegration
params.from
)}
GROUP BY
1, 2, 3
experiment_id,
variation_id,
${this.dateTrunc(this.castUserDateCol("timestamp"))}
),
__userThresholds as (
SELECT
Expand Down Expand Up @@ -1093,7 +1095,7 @@ export default abstract class SqlIntegration
FROM
(${replaceDateVars(join.query, from, to)}) i
GROUP BY
1, 2
${id1}, ${id2}
`;
}
}
Expand All @@ -1116,7 +1118,7 @@ export default abstract class SqlIntegration
${timestampColumn} >= ${this.toTimestamp(from)}
${to ? `AND ${timestampColumn} <= ${this.toTimestamp(to)}` : ""}
GROUP BY
1, 2
user_id, anonymous_id
`;
}
}
Expand Down

0 comments on commit 330df9e

Please sign in to comment.