Desugar expression and wrap it in given context.
(
self, expression: expr.ColumnExpression, context: clmn.Context | None = None
)
| 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: |
no test coverage detected