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

[PR] refactor(proto): migrate AsyncFuncExec to self-serializing proto [datafusion]

mattp5657 opened a new pull request, #23825:
URL: https://github.com/apache/datafusion/pull/23825

   Closes #23514. Part of #23494.
   
   Migrate `AsyncFuncExec` proto encode/decode into the plan itself via `try_to_proto` / `try_from_proto`, removing its central-arm handling in `physical_plan/mod.rs`. 
   
   ## Rationale
   
   `datafusion-proto` currently downcasts `AsyncFuncExec` in the central encode match and rebuilds it inline on decode. #23495 introduced self-serializing hooks so each plan owns its own wire format. This moves `AsyncFuncExec` onto that pattern.
   
   ## Changes
   
   - Added `try_to_proto` / `AsyncFuncExec::try_from_proto`, wired into the decode dispatch
   - Removed the central encode downcast branch
   - Old helper methods kept as `#[deprecated]` stubs, per existing convention
   - Wire format unchanged
   
   ## Testing
   
   Existing `roundtrip_async_func_exec` integration test now exercises the new hooks (old path deleted, so it's the only path left). `cargo fmt` + `cargo clippy --all-targets --features proto -- -D warnings` clean.
   
   ## User-facing changes
   
   No


-- 
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: [PR] refactor(proto): migrate AsyncFuncExec to self-serializing proto [datafusion]

Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb merged PR #23825:
URL: https://github.com/apache/datafusion/pull/23825


-- 
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: [PR] refactor(proto): migrate AsyncFuncExec to self-serializing proto [datafusion]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23825:
URL: https://github.com/apache/datafusion/pull/23825#issuecomment-5052837983

   <!-- semver-check-comment -->
   Thank you for opening this pull request!
   
   Reviewer note: [cargo-semver-checks](https://github.com/obi1kenobi/cargo-semver-checks) reported the current version number is not SemVer-compatible with the changes in this pull request (compared against the base branch).
   
   <details>
   <summary>Details</summary>
   
   ```
        Cloning apache/main
       Building datafusion-physical-plan v54.1.0 (current)
          Built [  36.879s] (current)
        Parsing datafusion-physical-plan v54.1.0 (current)
         Parsed [   0.148s] (current)
       Building datafusion-physical-plan v54.1.0 (baseline)
          Built [  35.803s] (baseline)
        Parsing datafusion-physical-plan v54.1.0 (baseline)
         Parsed [   0.149s] (baseline)
       Checking datafusion-physical-plan v54.1.0 -> v54.1.0 (no change; assume patch)
        Checked [   0.938s] 223 checks: 223 pass, 30 skip
        Summary no semver update required
       Finished [  75.409s] datafusion-physical-plan
       Building datafusion-proto v54.1.0 (current)
          Built [  59.376s] (current)
        Parsing datafusion-proto v54.1.0 (current)
         Parsed [   0.021s] (current)
       Building datafusion-proto v54.1.0 (baseline)
          Built [  64.887s] (baseline)
        Parsing datafusion-proto v54.1.0 (baseline)
         Parsed [   0.023s] (baseline)
       Checking datafusion-proto v54.1.0 -> v54.1.0 (no change; assume patch)
        Checked [   0.330s] 223 checks: 222 pass, 1 fail, 0 warn, 30 skip
   
   --- failure trait_method_marked_deprecated: trait method #[deprecated] added ---
   
   Description:
   A trait method is now #[deprecated]. Downstream crates will get a compiler warning when using this method.
           ref: https://doc.rust-lang.org/reference/attributes/diagnostics.html#the-deprecated-attribute
          impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.49.0/src/lints/trait_method_marked_deprecated.ron
   
   Failed in:
     method try_into_async_func_physical_plan in trait datafusion_proto::physical_plan::PhysicalPlanNodeExt in /home/runner/work/datafusion/datafusion/datafusion/proto/src/physical_plan/mod.rs:721
     method try_from_async_func_exec in trait datafusion_proto::physical_plan::PhysicalPlanNodeExt in /home/runner/work/datafusion/datafusion/datafusion/proto/src/physical_plan/mod.rs:721
   
        Summary semver requires new minor version: 0 major and 1 minor checks failed
       Finished [ 126.070s] datafusion-proto
   ```
   
   </details>


-- 
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: [PR] refactor(proto): migrate AsyncFuncExec to self-serializing proto [datafusion]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #23825:
URL: https://github.com/apache/datafusion/pull/23825#issuecomment-5052976231

   ## [Codecov](https://app.codecov.io/gh/apache/datafusion/pull/23825?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :x: Patch coverage is `65.27778%` with `25 lines` in your changes missing coverage. Please review.
   :white_check_mark: Project coverage is 80.70%. Comparing base ([`c118002`](https://app.codecov.io/gh/apache/datafusion/commit/c1180022e63f48a3af175d8d73dc21cca9379c65?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`63b1850`](https://app.codecov.io/gh/apache/datafusion/commit/63b18508dde30d93823c209d439386ebf31fb109?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   
   | [Files with missing lines](https://app.codecov.io/gh/apache/datafusion/pull/23825?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
   |---|---|---|
   | [datafusion/proto/src/physical\_plan/mod.rs](https://app.codecov.io/gh/apache/datafusion/pull/23825?src=pr&el=tree&filepath=datafusion%2Fproto%2Fsrc%2Fphysical_plan%2Fmod.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZGF0YWZ1c2lvbi9wcm90by9zcmMvcGh5c2ljYWxfcGxhbi9tb2QucnM=) | 5.26% | [18 Missing :warning: ](https://app.codecov.io/gh/apache/datafusion/pull/23825?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [datafusion/physical-plan/src/async\_func.rs](https://app.codecov.io/gh/apache/datafusion/pull/23825?src=pr&el=tree&filepath=datafusion%2Fphysical-plan%2Fsrc%2Fasync_func.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZGF0YWZ1c2lvbi9waHlzaWNhbC1wbGFuL3NyYy9hc3luY19mdW5jLnJz) | 86.79% | [2 Missing and 5 partials :warning: ](https://app.codecov.io/gh/apache/datafusion/pull/23825?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@            Coverage Diff             @@
   ##             main   #23825      +/-   ##
   ==========================================
   - Coverage   80.72%   80.70%   -0.02%     
   ==========================================
     Files        1089     1089              
     Lines      368911   368932      +21     
     Branches   368911   368932      +21     
   ==========================================
   - Hits       297785   297762      -23     
   - Misses      53374    53409      +35     
   - Partials    17752    17761       +9     
   ```
   </details>
   
   [:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/datafusion/pull/23825?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
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