(
node: sql_expr.Subquery, context: ContextType
)
| 304 | |
| 305 | @register(nodetype=sql_expr.Subquery) |
| 306 | def _subquery( |
| 307 | node: sql_expr.Subquery, context: ContextType |
| 308 | ) -> tuple[table.Table, ContextType]: |
| 309 | context = _with_block(node, context) |
| 310 | tab, _ = _run(node.args.pop("this"), context) |
| 311 | tab, context = _alias_block(node, tab, context) |
| 312 | if node.args.pop("pivots", []) != []: |
| 313 | raise NotImplementedError("PIVOTS not supported") |
| 314 | _check_work_done(node) |
| 315 | return tab, context |
| 316 | |
| 317 | |
| 318 | @register(nodetype=sql_expr.Table) |
no test coverage detected