alamb commented on pull request #9376:
URL: https://github.com/apache/arrow/pull/9376#issuecomment-771186423


   > Having been trying to implement a lot of the Postgres logic recently they 
all logically support the use of arrays for each of the parameters (i.e. 
date_trunc(array, array)) I have no idea how common the use of this 
functionality really is - and I suspect it is low - but if we are building the 
API for Postgres compatibility it would be good to solve.
   
   This is a good point @seddonm1 - I am just starting to look at this pR, but 
I wonder if we could do something like have a default implementation for 
`func(scalar, scalar)`, `func(scalar, array)`, and `func(array, scalar)` that 
are implemented in terms of the `func(array, array)`
   
   that way we would only have to supply `func(array, array)` and the scalar 
input case could be handled on a case by case basis. I'll try and commend 
inline if I see how that might be done


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to