dadepo commented on issue #8866:
URL: 
https://github.com/apache/arrow-datafusion/issues/8866#issuecomment-1913562175

   > I think the key thing a UDF writer needs to have is access to the number 
of output rows to produce. 
   
   @alamb Any pointers on how to get this info? I have switched to an 
implementation that does not use `make_scalar_function` but implements the UDF 
directly as `ScalarFunctionImplementation` but now run into a different 
situation, where 
   
   - the udf only returns one row if used with no arguments (even if the 
context of the table it is used with has many rows)
   - the udf is used in the same query - with and without a column argument, 
then it fails with `Error: ArrowError(InvalidArgumentError("all columns in a 
record batch must have the same length"), None)`


-- 
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: [email protected]

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

Reply via email to