You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "KR-bluejay (via GitHub)" <gi...@apache.org> on 2025/05/08 10:08:19 UTC

Re: [I] Implement method to apply scalar or aggregate function to Array elements [datafusion]

KR-bluejay commented on issue #15882:
URL: https://github.com/apache/datafusion/issues/15882#issuecomment-2862498585

   @alamb 
   
   Following your comment about making array functions more general, I suggest we create a common directory for array operations to reduce code duplication:
   
   ```
   datafusion/common/src/array/
   ```
   
   We could implement each operation in a separate file:
   - array_sum.rs
   - array_abs.rs
   - array_min.rs
   - array_max.rs
   
   This would provide a consistent interface for both element-wise operations and aggregations on arrays, making the codebase more maintainable and easier to extend with new array functions in the future.
   
   I'd like to work on implementing this approach. What do you think about organizing array operations this way? If this approach seems reasonable, I'm happy to start working on 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