GitHub user mgrenonville added a comment to the discussion: Expose intermediary states in aggregation functions
Thanks for your reply. I had the big picture but the documentation made me realize that I "just" have to write two UDFA: - The first is the `-State`, that uses the original function to build states and then just serialize the state as a ScalarValue, - The second will be the `-Merge`, it will deserialize state, and use the merge_batch and evaluate function to build the final result. GitHub link: https://github.com/apache/datafusion/discussions/16239#discussioncomment-13386870 ---- This is an automatically sent email for github@datafusion.apache.org. To unsubscribe, please send an email to: github-unsubscr...@datafusion.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org