(self, expression: expr.ColumnExpression)
| 2504 | return self._table_with_context(context) |
| 2505 | |
| 2506 | def _validate_expression(self, expression: expr.ColumnExpression): |
| 2507 | for dep in expression._dependencies_above_reducer(): |
| 2508 | if self._universe != dep._column.universe: |
| 2509 | raise ValueError( |
| 2510 | f"You cannot use {dep.to_column_expression()} in this context." |
| 2511 | + " Its universe is different than the universe of the table the method" |
| 2512 | + " was called on. You can use <table1>.with_universe_of(<table2>)" |
| 2513 | + " to assign universe of <table2> to <table1> if you're sure their" |
| 2514 | + " sets of keys are equal." |
| 2515 | ) |
| 2516 | |
| 2517 | def _check_for_disallowed_types(self, *expressions: expr.ColumnExpression): |
| 2518 | for expression in expressions: |
no test coverage detected