MCPcopy Index your code
hub / github.com/pathwaycom/pathway / validate_shape

Function validate_shape

python/pathway/internals/joins.py:1124–1134  ·  view source on GitHub ↗
(cond: expr.ColumnExpression)

Source from the content-addressed store, hash-verified

1122
1123
1124def validate_shape(cond: expr.ColumnExpression) -> expr.ColumnBinaryOpExpression:
1125 if (
1126 not isinstance(cond, expr.ColumnBinaryOpExpression)
1127 or cond._operator != op.eq
1128 or not isinstance(cond._left, expr.ColumnReference)
1129 or not isinstance(cond._right, expr.ColumnReference)
1130 ):
1131 raise ValueError(
1132 "join condition should be of form <left_table>.<column> == <right_table>.<column>"
1133 )
1134 return cond
1135
1136
1137def validate_join_condition(

Callers 2

_table_joinMethod · 0.85
validate_join_conditionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected