(self)
| 976 | ) |
| 977 | |
| 978 | def test_within_group(self): |
| 979 | stmt = select( |
| 980 | table1.c.myid, |
| 981 | func.percentile_cont(0.5).within_group(table1.c.name), |
| 982 | ) |
| 983 | self.assert_compile( |
| 984 | stmt, |
| 985 | "SELECT mytable.myid, percentile_cont(:percentile_cont_2) " |
| 986 | "WITHIN GROUP (ORDER BY mytable.name) " |
| 987 | "AS percentile_cont_1 " |
| 988 | "FROM mytable", |
| 989 | {"percentile_cont_2": 0.5}, |
| 990 | ) |
| 991 | |
| 992 | def test_within_group_multi(self): |
| 993 | stmt = select( |
nothing calls this directly
no test coverage detected