You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/05/06 18:38:55 UTC

[GitHub] [arrow-datafusion] jorgecarleitao commented on issue #251: Implement Postgres compatible `now()` function

jorgecarleitao commented on issue #251:
URL: https://github.com/apache/arrow-datafusion/issues/251#issuecomment-833766100


   My two cents:
   
   I do not think that this issue is a "good first issue". Atm, functions are:
   
   1. stateless
   2. do not know what is the expected resulting size of the array (e.g. creating a function that filters currently works)
   
   Solving this issue requires both:
   
   * `now` is stateful because its value is stored after its first evaluation, like @returnString says
   * `now` requires knowing the output size of the array, which must be passed to when the record batch is passing through the stream
   
   This requires a (imo large) change in our internal workings.
   
   Note that another class of functions that is unlocked by this work are functions that return non-deterministic numbers (e.g. random numbers).
   
   
   
   


-- 
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:
users@infra.apache.org