Function
_with_block
(node: sql_expr.Expression, context: ContextType)
Source from the content-addressed store, hash-verified
| 607 | |
| 608 | |
| 609 | def _with_block(node: sql_expr.Expression, context: ContextType) -> ContextType: |
| 610 | if (with_field := node.args.pop("with", None)) is not None: |
| 611 | new_context = context.copy() |
| 612 | for context_update in _with(with_field, context): |
| 613 | new_context.update(context_update) |
| 614 | return new_context |
| 615 | else: |
| 616 | return context |
| 617 | |
| 618 | |
| 619 | def _joins_block( |
Tested by
no test coverage detected