Skip to content

Commit

Permalink
Add conditions to join in ratio metric (growthbook#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesonnet authored Jan 20, 2023
1 parent 433a563 commit 4b19b47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/back-end/src/integrations/SqlIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,8 @@ export default abstract class SqlIntegration
? `__userDenominator d
LEFT JOIN __userMetric m ON (
d.${baseIdType} = m.${baseIdType}
AND d.dimension = m.dimension
AND d.variation = m.variation
)`
: `__userMetric m`
}
Expand Down

0 comments on commit 4b19b47

Please sign in to comment.