MCPcopy
hub / github.com/pathwaycom/pathway / _with_block

Function _with_block

python/pathway/internals/sql/processing.py:609–616  ·  view source on GitHub ↗
(node: sql_expr.Expression, context: ContextType)

Source from the content-addressed store, hash-verified

607
608
609def _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
619def _joins_block(

Callers 4

_subqueryFunction · 0.85
_unionFunction · 0.85
_intersectFunction · 0.85
_selectFunction · 0.85

Calls 3

_withFunction · 0.85
copyMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected