You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate BinaryExpr to PhysicalExpr::try_to_proto / try_from_proto
Second expression to use the new hooks, following the same pattern as
Column. The BinaryExpr downcast arm in
`serialize_physical_expr_with_converter` and the inline match arm in
`parse_physical_expr_with_converter` are removed; both directions now
live on `BinaryExpr` itself.
Linearization of nested same-op chains stays bit-for-bit identical with
the previous behavior, just expressed in terms of
`PhysicalExprEncodeCtx::encode_child` / `PhysicalExprDecodeCtx::decode`
instead of the proto converter.
`BinaryExpr::try_from_proto` takes the whole `PhysicalExprNode` and parses
the operator string itself. The proto-string-to-enum mapping moves from
`from_proto_binary_op` in `datafusion-proto` down to
`Operator::from_proto_name` in `datafusion-expr-common`, so the logical
plan path and the physical `BinaryExpr` decoder share one source of truth
without `physical-expr` depending on `datafusion-proto`; `from_proto_binary_op`
now delegates to it.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments