(self)
| 909 | ) |
| 910 | |
| 911 | def test_within_group_multi(self): |
| 912 | stmt = select( |
| 913 | table1.c.myid, |
| 914 | func.percentile_cont(0.5).within_group( |
| 915 | table1.c.name, table1.c.description |
| 916 | ), |
| 917 | ) |
| 918 | self.assert_compile( |
| 919 | stmt, |
| 920 | "SELECT mytable.myid, percentile_cont(:percentile_cont_1) " |
| 921 | "WITHIN GROUP (ORDER BY mytable.name, mytable.description) " |
| 922 | "AS anon_1 " |
| 923 | "FROM mytable", |
| 924 | {"percentile_cont_1": 0.5}, |
| 925 | ) |
| 926 | |
| 927 | def test_within_group_desc(self): |
| 928 | stmt = select( |
nothing calls this directly
no test coverage detected