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

Method _wrap_column_in_context

python/pathway/internals/table.py:2526–2540  ·  view source on GitHub ↗

Contextualize column by wrapping it in expression.

(
        self,
        context: clmn.Context,
        column: clmn.Column,
        name: str,
        lineage: clmn.Lineage | None = None,
    )

Source from the content-addressed store, hash-verified

2524 )
2525
2526 def _wrap_column_in_context(
2527 self,
2528 context: clmn.Context,
2529 column: clmn.Column,
2530 name: str,
2531 lineage: clmn.Lineage | None = None,
2532 ) -> clmn.Column:
2533 """Contextualize column by wrapping it in expression."""
2534 expression = expr.ColumnReference(_table=self, _column=column, _name=name)
2535 return expression._column_with_expression_cls(
2536 context=context,
2537 universe=context.universe,
2538 expression=expression,
2539 lineage=lineage,
2540 )
2541
2542 def _table_with_context(self, context: clmn.Context) -> Table:
2543 columns = {

Callers 8

_restrictMethod · 0.95
_copy_asMethod · 0.95
rename_columnsMethod · 0.95
withoutMethod · 0.95
_flattenMethod · 0.95
_table_with_contextMethod · 0.95
to_streamMethod · 0.95

Calls 1

Tested by

no test coverage detected