MCPcopy Index your code
hub / github.com/pathwaycom/pathway / _alias_block

Function _alias_block

python/pathway/internals/sql/processing.py:629–638  ·  view source on GitHub ↗
(
    node: sql_expr.Expression, tab: table.Table, context: ContextType
)

Source from the content-addressed store, hash-verified

627
628
629def _alias_block(
630 node: sql_expr.Expression, tab: table.Table, context: ContextType
631) -> tuple[table.Table, ContextType]:
632 if (alias_field := node.args.pop("alias", None)) is not None:
633 alias = _run(alias_field, context)
634 assert isinstance(alias, str)
635 context = context.copy()
636 tab = tab.copy()
637 context[alias] = tab
638 return tab, context
639
640
641def _check_work_done(node: sql_expr.Expression) -> None:

Callers 2

_subqueryFunction · 0.85
_tableFunction · 0.85

Calls 2

_runFunction · 0.70
copyMethod · 0.45

Tested by

no test coverage detected