pepijnve opened a new issue, #14275: URL: https://github.com/apache/datafusion/issues/14275
### Is your feature request related to a problem or challenge? `struct` and `named_struct` do not yet implement `invoke_with_args`; only `invoke_batch` is implemented. Since `invoke_batch` does not have access to the return type it cannot make use of the `Fields` instance that's created in that function and instead derives the same value on each invocation. ### Describe the solution you'd like Implement `invoke_with_args` instead to allow reuse of the already computed `Fields` and removed the duplicated logic. ### Describe alternatives you've considered None ### Additional context Partial version of #13515 for `struct` and `named_struct`. -- 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-unsubscr...@datafusion.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org