MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_groupby_rollup

Method test_groupby_rollup

test/dialect/mysql/test_compiler.py:788–793  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

786 )
787
788 def test_groupby_rollup(self):
789 t = table("tt", column("foo"), column("bar"))
790 q = sql.select(t.c.foo).group_by(sql.func.rollup(t.c.foo, t.c.bar))
791 self.assert_compile(
792 q, "SELECT tt.foo FROM tt GROUP BY tt.foo, tt.bar WITH ROLLUP"
793 )
794
795
796class CustomExtensionTest(

Callers

nothing calls this directly

Calls 6

tableFunction · 0.90
columnFunction · 0.90
rollupMethod · 0.80
assert_compileMethod · 0.80
group_byMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected