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

Method _eval

python/pathway/internals/table.py:2557–2568  ·  view source on GitHub ↗

Desugar expression and wrap it in given context.

(
        self, expression: expr.ColumnExpression, context: clmn.Context | None = None
    )

Source from the content-addressed store, hash-verified

2555 return clmn.TableRestrictedRowwiseContext(self._id_column, self)
2556
2557 def _eval(
2558 self, expression: expr.ColumnExpression, context: clmn.Context | None = None
2559 ) -> clmn.ColumnWithExpression:
2560 """Desugar expression and wrap it in given context."""
2561 if context is None:
2562 context = self._rowwise_context
2563 column = expression._column_with_expression_cls(
2564 context=context,
2565 universe=context.universe,
2566 expression=expression,
2567 )
2568 return column
2569
2570 @classmethod
2571 def _from_schema(cls: type[TTable], schema: type[Schema]) -> TTable:

Callers 13

selectMethod · 0.95
_filterMethod · 0.95
_forgetMethod · 0.95
_freezeMethod · 0.95
_bufferMethod · 0.95
deduplicateMethod · 0.95
_with_new_indexMethod · 0.95
sortMethod · 0.95
stream_to_tableMethod · 0.95
__gradual_broadcastMethod · 0.45
_table_joinMethod · 0.45

Calls 1

Tested by

no test coverage detected