MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / outer_select

Method outer_select

api/experimentation/results_query.py:102–105  ·  view source on GitHub ↗

Sufficient-stat aggregates for the final SELECT.

(self)

Source from the content-addressed store, hash-verified

100 raise ValueError(f"Unsupported metric aggregation: {agg}")
101
102 def outer_select(self) -> str:
103 """Sufficient-stat aggregates for the final SELECT."""
104 a = self._alias
105 return f"sum({a}) AS {a}_sum, sum({a} * {a}) AS {a}_sum_squares"
106
107 def decode(self, n: int, row: Sequence[Any], index: dict[str, int]) -> VariantStats:
108 """Read this slot's two columns (sum, sum_squares) from a row by name."""

Callers 1

build_queryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected