You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "adriangb (via GitHub)" <gi...@apache.org> on 2026/07/12 18:05:35 UTC

[I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

adriangb opened a new issue, #23494:
URL: https://github.com/apache/datafusion/issues/23494

   Follow-up to #22418 (the equivalent `PhysicalExpr` effort). This issue tracks porting the built-in `ExecutionPlan` implementations — and the `DataSource`/`FileSource`/`DataSink` families — to per-type `try_to_proto` / `try_from_proto` hooks, eliminating the central `downcast_ref` chain in [`datafusion/proto/src/physical_plan/mod.rs`](https://github.com/apache/datafusion/blob/main/datafusion/proto/src/physical_plan/mod.rs).
   
   ## Why
   
   Today every built-in `ExecutionPlan` is serialized through a large `downcast_ref` chain on the encode side and a symmetric `match` on `PhysicalPlanType` on the decode side. This is the same problem #21835 described for `PhysicalExpr`: it forces internal state to be exposed as `pub` for the encoder to reach, makes it easy to forget serialization when adding a plan, and splits built-in vs. third-party plans across different code paths.
   
   Mirroring #21929 / #22418, each plan can move onto a `try_to_proto` hook (a trait method, default `Ok(None)`) plus a `try_from_proto` associated fn, **one PR at a time, with no wire-format change**.
   
   ## The hook + context
   
   Added by the base PR (see below), in `datafusion-physical-plan`:
   
   - `ExecutionPlan::try_to_proto(&self, ctx: &ExecutionPlanEncodeCtx) -> Result<Option<PhysicalPlanNode>>` — trait method, default `Ok(None)`, feature-gated `#[cfg(feature = "proto")]`.
   - `<PlanType>::try_from_proto(node, ctx: &ExecutionPlanDecodeCtx) -> Result<Arc<dyn ExecutionPlan>>` — inherent associated fn, wired into the matching `PhysicalPlanType::…` decode arm.
   - `ExecutionPlanEncodeCtx` / `ExecutionPlanDecodeCtx` expose everything a plan needs without naming `datafusion-proto`: `encode_child`/`decode_child`(+ `_children`), `encode_expr`/`decode_expr` (against any schema), and — for function-carrying plans — typed **bytes-only** `encode_udaf`/`decode_udaf` (+ udf/udwf). The dependency inversion (internal dispatch traits defined in physical-plan, implemented in datafusion-proto) is identical to the `PhysicalExpr` ctx.
   
   The encode dispatch resolves `downcast_delegate()` before calling the hook, so wrapper plans serialize as their delegate.
   
   ### Note on function-carrying plans (`AggregateExec`, window execs, `ScalarSubqueryExec`)
   
   Unlike the `PhysicalExpr` side — where the ctx lives *below* `datafusion-expr` and so `ScalarFunctionExpr` must stay special-cased — `datafusion-physical-plan` sits *above* `datafusion-expr`, so the ctx can carry typed function serde directly. This means aggregate/window/scalar-subquery plans ride the hook via `ctx.encode_udaf` / `decode_udaf` etc.; no `PhysicalExtensionCodec` is exposed and no proto type crosses the boundary. (This is why the `ScalarUdfCodec` proposal in #23421 is not needed for plans.)
   
   ## Pattern (per plan)
   
   1. **`try_to_proto`** inside `impl ExecutionPlan for FooExec`, `#[cfg(feature = "proto")]`. ⚠️ It must be the trait-method override — an inherent method with the same name is silently never called through `&dyn ExecutionPlan`.
   2. **`FooExec::try_from_proto`** in a separate `#[cfg(feature = "proto")] impl FooExec` block, wired into the `PhysicalPlanType::Foo(_) => FooExec::try_from_proto(self.node(), &decode_ctx)` decode arm.
   3. **In the same PR, delete** the plan's old encode `downcast_ref` arm and repoint its decode arm — this is the only proof the hook is actually reached (roundtrip tests pass through the new path).
   4. Keep the wire format byte-for-byte identical. Enum conversions (`JoinType`, `NullEquality`, `PartitionMode`, `JoinSide`, `AggregateMode`, …) inline as **by-name** exhaustive matches — the proto and `datafusion_common` enums are numbered differently, so a numeric cast silently corrupts them.
   
   The **reference implementation** is `ProjectionExec` in the base PR. `HashJoinExec` is the reference for joins (two children, on-columns, `JoinFilter`, projection sentinel, enum conversions); `AggregateExec` for the function-codec path.
   
   ## Reference PRs
   
   - **Base (foundation, ride-along reference):** the `try_to_proto`/`try_from_proto` hooks + ctx + `ProjectionExec` — this must land first. _(link below)_
   - **Full end-state (draft, for reference only):** the entire port across all plans + the `DataSource`/`DataSink` families. _(link below)_
   
   ## Scope / checklist
   
   Each item is an independent follow-up PR. The two foundation items unblock their families.
   
   ### Foundations
   - [ ] DataSource/FileSource `try_to_proto` hook + `FileScanConfig` serde port
   - [ ] DataSink `try_to_proto` hook + `FileSinkConfig` serde port
   
   ### `datafusion-physical-plan` plans
   - [ ] FilterExec
   - [ ] Trivial single-child: CoalesceBatchesExec, CoalescePartitionsExec, CooperativeExec, BufferExec
   - [ ] Leaves: EmptyExec, PlaceholderRowExec
   - [ ] Limits: GlobalLimitExec, LocalLimitExec
   - [ ] UnionExec + InterleaveExec
   - [ ] RepartitionExec
   - [ ] SortExec + SortPreservingMergeExec
   - [ ] Simple joins: CrossJoinExec, NestedLoopJoinExec
   - [ ] HashJoinExec
   - [ ] SortMergeJoinExec
   - [ ] SymmetricHashJoinExec
   - [ ] UnnestExec
   - [ ] ExplainExec + AnalyzeExec
   - [ ] AggregateExec (function-codec path)
   - [ ] Window execs: WindowAggExec + BoundedWindowAggExec
   - [ ] AsyncFuncExec
   - [ ] ScalarSubqueryExec (adds a scalar-subquery-results scope to the decode ctx)
   
   ### DataSource / DataSink families (blocked by the foundations)
   - [ ] File scans: CsvSource, JsonSource, ArrowSource, AvroSource
   - [ ] ParquetSource
   - [ ] MemorySourceConfig
   - [ ] File sinks: CsvSink, JsonSink, ParquetSink
   
   ## Intentionally left as typed dispatch
   
   - **`GenerateSeries` / `LazyMemoryExec`** — the generate-series generator types live in `datafusion-functions-table`, which sits *above* `datafusion-physical-plan`; an `ExecutionPlan`-keyed hook cannot name them without a crate cycle. Would require a generator-level hook (separate design).
   - **`Extension`** — the terminal `codec.try_encode` fallback for arbitrary third-party plans. This is the intended endpoint and stays.
   
   ## API change
   
   Removing the per-plan `PhysicalPlanNodeExt` serialization methods and the `TryFromProto<&protobuf::{Json,Csv,Parquet}Sink>` impls is a deliberate breaking change (these were pub-for-proto scaffolding added in #21929 and released in 54.0.0). The full end-state PR removes them; each incremental PR removes its own arms. This will be summarized in the Upgrade Guide. The load-bearing public API — `AsExecutionPlan`, `PhysicalExtensionCodec`, `PhysicalProtoConverterExtension` — is unchanged.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on issue #23494:
URL: https://github.com/apache/datafusion/issues/23494#issuecomment-5028370917

   Guidance refinement: the deprecated `PhysicalPlanNodeExt` shims should now **delegate** to the plan's new `try_to_proto` / `try_from_proto` hook rather than keep their original duplicated bodies (this supersedes the "keep them with their original bodies" note in my 2026-07-17 comment above). `FilterExec` (#23708) already follows this, and #23731 updates the `ProjectionExec` reference to match. Deleting the old central encode `downcast_ref` arm + repointing the decode arm in the same PR is still required.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on issue #23494:
URL: https://github.com/apache/datafusion/issues/23494#issuecomment-5219122892

   ## Post-migration cleanup
   
   With the plan-side checklist essentially complete (only the scan sources — #23516, #23517, #23518 — remain, and both foundations they were blocked on have landed), here is a round of follow-up cleanup, plus one real bug the audit turned up.
   
   ### The bug this found
   
   **#24165 — `fix(proto): preserve HashJoinExec fetch across serialization`**
   
   `protobuf::HashJoinExecNode` has no `fetch` field, so `HashJoinExec.fetch` round-trips `Some(n) -> None`. It matters because `limit_pushdown` pushes the limit *into* the join via `with_fetch` and then drops the enclosing `GlobalLimitExec` — so after a round-trip the plan has no limit at all and a distributed executor returns more rows than the query asked for.
   
   The new field is presence-tracked (`optional uint64`) on purpose: a plain proto3 scalar decodes an absent field as `0`, which under `SortExecNode`'s negative-sentinel convention would read as "fetch 0 rows" and silently empty out plans serialized by older versions.
   
   Worth noting *why* no existing test caught this: `roundtrip_test` compares `format!("{plan:?}")`, and `HashJoinExec`'s `Debug` output does not include `fetch`. This was verified rather than assumed — with the encode side reverted, the Debug comparison still passes and only a direct `fetch()` assertion fails. Display-string round-trip assertions cannot catch a dropped field that `Debug` does not print.
   
   ### Cleanup 1 — exhaustive destructuring in the serde hooks
   
   Today the encoders read state through getters, so adding a field to a plan struct is invisible to serialization: nothing breaks, the field is just silently not on the wire. That is exactly how the `fetch` bug happened.
   
   These PRs make both directions exhaustive — `try_to_proto` opens with a full `let Self { .. } = self` destructure (no `..`, every non-serialized field bound to `_` with a comment saying why), and `try_from_proto` destructures the prost node struct. Adding a field to a plan struct or to a proto message then becomes a compile error in every affected encoder/decoder. The prost-generated structs are plain, all-`pub` and not `#[non_exhaustive]`, so this works on the decode side too.
   
   Split by family so each stays reviewable; all three are pure refactors with the wire format byte-for-byte unchanged:
   
   - **#24164** — joins: `SymmetricHashJoinExec`, `NestedLoopJoinExec`, `CrossJoinExec`, `SortMergeJoinExec`, and the hash-join expressions
   - **#24167** — core plans: sorts, limits, filter, projection, repartition, union/interleave, coalesce/cooperative/buffer, leaves, explain, scalar subquery (17 plans)
   - **#24166** — aggregate and window: `AggregateExec`, both window execs, unnest, async func, analyze
   
   `HashJoinExec` itself is deliberately absent — it belongs to the bug fix above; its destructure is a small follow-up once that merges.
   
   ### Cleanup 2 — deprecate accessors that only existed for proto
   
   ****#24168** (stacked on #24166 — its diff carries that PR's commits until it merges)**
   
   Several `pub fn` accessors were added purely so the central encoder could reach private fields. Now that each plan's `try_to_proto` lives in the plan's own module and (after cleanup 1) reads fields directly, they have no callers at all:
   
   | Accessor | Introduced by |
   |---|---|
   | `AnalyzeExec::verbose`, `::show_statistics` | #7574 "Implement protobuf serialization for AnalyzeExec" |
   | `UnnestExec::list_column_indices`, `::struct_column_indices` | #12344 "Support encoding and decoding UnnestExec" |
   | `AsyncFuncExec::async_exprs` | #19118 "[Proto]: Serialization support for `AsyncFuncExec`" |
   
   Deprecated rather than removed, per the API health policy, on the same `since = "55.0.0"` schedule as the `PhysicalPlanNodeExt` scaffolding.
   
   A second tier of accessors also turns out to have no callers (`SymmetricHashJoinExec::{left,right}_sort_exprs`, `WindowAggExec::partition_by_sort_keys`, `ScalarSubqueryExec::subqueries`, `CoalesceBatchesExec::target_batch_size`, `HashJoinExec::join_schema`, `CastExpr::cast_options`), but those predate the proto work and do not meet the "only existed for serialization" bar — happy to handle them separately if people think they should go.
   
   ### Gaps the refactor documented but did not fix
   
   Each of these is a field that does not survive a round-trip. They are left behaving exactly as today, with a comment recording the state, since changing the wire format inside a cleanup PR would be worse than the gap:
   
   - **`AnalyzeExec::metric_types`** — no field on `AnalyzeExecNode`, and `AnalyzeExecBuilder` unconditionally resets it to `[Summary, Dev]`, so a non-default metric type selection is lost. This is the same class of bug as the `fetch` one and probably wants its own fix.
   - `SortPreservingMergeExec::enable_round_robin_repartition` — not on the wire; decode restores the `true` default. Only set to `false` in tests/benches today, so no production path is affected.
   - `Global/LocalLimitExec::required_ordering` — not on the wire; set by `enforce_sorting`, so decode yields `None`.
   - `HashTableLookupExpr` — serializes none of its state by design (runtime map, replaced with `lit(true)`). Pre-existing and intentional; it now has an all-`_` destructure so a future field addition forces an explicit decision.
   
   ### Possible further follow-ups
   
   - The same destructuring treatment for the `PhysicalExpr` hooks from #22418.
   - There is no guard test asserting that every `PhysicalPlanType` variant round-trips — 157 hand-written tests, no exhaustive enumeration.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #23494:
URL: https://github.com/apache/datafusion/issues/23494#issuecomment-5257742572

   I updated https://github.com/apache/datafusion/pull/24205 so that it will close this epic. If there is still more work to do, let's file a new epic with the remaining items so it is clear what we got done and what we did not


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

Posted by "buraksenn (via GitHub)" <gi...@apache.org>.
buraksenn commented on issue #23494:
URL: https://github.com/apache/datafusion/issues/23494#issuecomment-4970027034

   > [@buraksenn](https://github.com/buraksenn) that would be great! Happy to have you review my foundation / base PR or I can review one you put up if you'd rather own it.
   
   I've missed your foundation work PR. I'll review it today and will pick up the follow-ups. Thanks @adriangb 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on issue #23494:
URL: https://github.com/apache/datafusion/issues/23494#issuecomment-5254007421

   Thanks @timsaucer. I had forgotten about that one. I opened #23494 to address. So yes from my perspective #23494 and https://github.com/apache/datafusion/pull/24205 are the remaining items to tackle before the 55 release.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

Posted by "buraksenn (via GitHub)" <gi...@apache.org>.
buraksenn commented on issue #23494:
URL: https://github.com/apache/datafusion/issues/23494#issuecomment-4965520735

   I can take a look in foundation work or some of the execution plan work if they're up for grabs


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on issue #23494:
URL: https://github.com/apache/datafusion/issues/23494#issuecomment-5231371519

   Another bug we found during this work: https://github.com/apache/datafusion/issues/24202


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb closed issue #23494: [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks
URL: https://github.com/apache/datafusion/issues/23494


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on issue #23494:
URL: https://github.com/apache/datafusion/issues/23494#issuecomment-4963417253

   @jayshrivastava @gabotechs I wonder if you're interested in this work since datafusion-distributed depends on datafusion's serialization?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on issue #23494:
URL: https://github.com/apache/datafusion/issues/23494#issuecomment-4969256195

   @buraksenn that would be great! Happy to have you review my foundation / base PR or I can review one you put up if you'd rather own it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

Posted by "jayshrivastava (via GitHub)" <gi...@apache.org>.
jayshrivastava commented on issue #23494:
URL: https://github.com/apache/datafusion/issues/23494#issuecomment-4971905214

   @adriangb I can definitely pick up some issues and/or review PRs here!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on issue #23494:
URL: https://github.com/apache/datafusion/issues/23494#issuecomment-5224948870

   Since folks following this may be interested, here are related bug fixes and cleanup worth landing before the next release:
   
   Bugs: [#24170](https://github.com/apache/datafusion/issues/24170), [#24173](https://github.com/apache/datafusion/issues/24173)
   Cleanup: [#24164](https://github.com/apache/datafusion/pull/24164), [#24166](https://github.com/apache/datafusion/pull/24166), [#24167](https://github.com/apache/datafusion/pull/24167), [#24168](https://github.com/apache/datafusion/pull/24168)
   Tests: [#24172](https://github.com/apache/datafusion/pull/24172), [#24171](https://github.com/apache/datafusion/issues/24171)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on issue #23494:
URL: https://github.com/apache/datafusion/issues/23494#issuecomment-5231769955

   The migration is all done! Now we just need to do the cleanup 😄 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

Posted by "timsaucer (via GitHub)" <gi...@apache.org>.
timsaucer commented on issue #23494:
URL: https://github.com/apache/datafusion/issues/23494#issuecomment-5240623852

   @adriangb I'm trying to get a sense of what is left before we start the 55 release branch. It looks like the only thing left in your list above is "Remove the #[deprecated(since = "55.0.0")] PhysicalPlanNodeExt scaffolding after the deprecation window (6 major versions or 6 months, whichever is longer) + Upgrade Guide entry" 
   
   Do we have a tracking PR or issue for that? In the #22393 issue you also mentioned https://github.com/apache/datafusion/pull/24205 needs to go in. Anything else?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #23494:
URL: https://github.com/apache/datafusion/issues/23494#issuecomment-5257732787

   I merged https://github.com/apache/datafusion/pull/24269 and it looks like @timsaucer has approved https://github.com/apache/datafusion/pull/24205
   
   so we should be good to go now I think


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] [EPIC] Port ExecutionPlan serialization to try_to_proto / try_from_proto hooks [datafusion]

Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on issue #23494:
URL: https://github.com/apache/datafusion/issues/23494#issuecomment-5005240566

   The base PR (#23495) has merged, so the individual sub-tasks are now unblocked — anyone interested can pick one up! 🚀
   
   Notes for contributors:
   
   - Follow the **Pattern (per plan)** section in the issue description above. `ProjectionExec` on main is the merged reference implementation; the freshly rebased end-state draft #23496 shows what every migration looks like against current main.
   - Per the recent review discussion on #23495, do **not** delete your plan's old `PhysicalPlanNodeExt` methods — keep them with their original bodies under `#[deprecated(since = "55.0.0", note = ...)]` (see the projection pair in `datafusion/proto/src/physical_plan/mod.rs` for the exact shape). Deleting the old encode `downcast_ref` arm and repointing the decode arm in the same PR is still required — that's the proof the hook is the live path.
   - The two foundation issues (#23497 DataSource, #23498 DataSink) gate the scan/sink family items (#23516–#23519); everything under "`datafusion-physical-plan` plans" is independent and can start immediately.
   - Please comment on the sub-issue you're taking so we don't duplicate work.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org