Contextualize column by wrapping it in expression.
(
self,
context: clmn.Context,
column: clmn.Column,
name: str,
lineage: clmn.Lineage | None = None,
)
| 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 = { |
no test coverage detected