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

Method _validate_expression

python/pathway/internals/table.py:2506–2515  ·  view source on GitHub ↗
(self, expression: expr.ColumnExpression)

Source from the content-addressed store, hash-verified

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:

Callers 5

selectMethod · 0.95
_filterMethod · 0.95
deduplicateMethod · 0.95
_with_new_indexMethod · 0.95
stream_to_tableMethod · 0.95

Calls 2

to_column_expressionMethod · 0.45

Tested by

no test coverage detected