You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "viirya (via GitHub)" <gi...@apache.org> on 2024/01/28 22:11:30 UTC

[I] ScalarUDF with zero arguments should be provided with one null array as parameter [arrow-datafusion]

viirya opened a new issue, #9032:
URL: https://github.com/apache/arrow-datafusion/issues/9032

   ### Describe the bug
   
   According to `ScalarUDFImpl` document, if the function has zero argument, it will be passed a single element slice which is a a null array to indicate the batch's row count. But currently it is provided a null scalar.
   
   This is reported by @dadepo in https://github.com/apache/arrow-datafusion/issues/8866#issuecomment-1913613142. 
   
   ### To Reproduce
   
   https://github.com/apache/arrow-datafusion/issues/8866#issuecomment-1913613142 provides a reproducible test.
   
   ### Expected behavior
   
   `ScalarUDFImpl` implementation, when it has zero argument, it will be passed a single element slice which is a a null array to indicate the batch's row count.
   
   
   ### Additional context
   
   _No response_


-- 
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@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org