(self)
| 175 | literal(column("q")) |
| 176 | |
| 177 | def test_scalar_select_no_coercion(self): |
| 178 | with testing.expect_warnings( |
| 179 | "implicitly coercing SELECT object to scalar subquery" |
| 180 | ): |
| 181 | expect( |
| 182 | roles.LabeledColumnExprRole, |
| 183 | select(column("q")), |
| 184 | ) |
| 185 | |
| 186 | with testing.expect_warnings( |
| 187 | "implicitly coercing SELECT object to scalar subquery" |
| 188 | ): |
| 189 | expect( |
| 190 | roles.LabeledColumnExprRole, |
| 191 | select(column("q")).alias(), |
| 192 | ) |
| 193 | |
| 194 | def test_values_advice(self): |
| 195 | value_expr = values( |