(
op: sql_expr.And | sql_expr.EQ,
)
| 372 | if (on_field := node.args.pop("on", None)) is not None: |
| 373 | |
| 374 | def _rec( |
| 375 | op: sql_expr.And | sql_expr.EQ, |
| 376 | ) -> list[expr.ColumnBinaryOpExpression]: |
| 377 | if isinstance(op, sql_expr.And): |
| 378 | return _rec(op.this) + _rec(op.expression) |
| 379 | else: |
| 380 | return [_run(op, context)] |
| 381 | |
| 382 | on_all = _rec(on_field) |
| 383 |