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

[I] FFI: `FFI_WindowUDF` silently drops producer overrides of defaulted trait methods [datafusion]

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

   ## Gap
   
   `FFI_WindowUDF` in `datafusion/ffi/src/udwf/mod.rs` does not plumb several defaulted methods of `WindowUDFImpl`. Producer overrides are silently lost on the consumer side.
   
   ## Missing methods
   
   - `simplify`
   - `expressions`
   - `reverse_expr`
   - `documentation`
   
   ## Why it matters
   
   **Severity: important.** `expressions()` selects which physical expressions reach the `PartitionEvaluator` — silent fallback can change window-function semantics. `simplify` and `reverse_expr` are planner hooks. `documentation` is cosmetic but cheap to add.
   
   ## Implementation notes
   
   - Plumb each as a plain `unsafe extern \"C\" fn`; wrapper body calls the trait method on inner `Arc<dyn WindowUDFImpl>` and dispatch handles override-or-default.
   - `expressions` returns `Vec<Arc<dyn PhysicalExpr>>` — relies on the existing `FFI_PhysicalExpr` plumbing.
   - `simplify` / `reverse_expr` ship `Expr` — require the embedded `FFI_LogicalExtensionCodec`.
   - Layout change → `api change` label, target `main` only, no back-port to `branch-<major>`.
   - Add unit tests (local-bypass + `mock_foreign_marker_id` forced-foreign) **and** integration tests under `datafusion/ffi/tests/`.
   
   ---
   
   Generated from an audit performed for PR #22327 (datafusion-ffi agent skill). If a PR addressing this finds any item to be a false positive (e.g., a method intentionally omitted for a documented reason), please also propose an update to the `datafusion-ffi` skill so future audits do not re-flag 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.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] FFI: `FFI_WindowUDF` silently drops producer overrides of defaulted trait methods [datafusion]

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

   @timsaucer Can i work on this issue ??


-- 
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] FFI: `FFI_WindowUDF` silently drops producer overrides of defaulted trait methods [datafusion]

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

   If you comment “take” on the issue it should assign it to you.


-- 
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] FFI: `FFI_WindowUDF` silently drops producer overrides of defaulted trait methods [datafusion]

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

   @timsaucer Hello 
   I have raised a PR and all CI tests are successful 
   Please review 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] FFI: `FFI_WindowUDF` silently drops producer overrides of defaulted trait methods [datafusion]

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

   take


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