dadepo opened a new issue, #8866: URL: https://github.com/apache/arrow-datafusion/issues/8866
### Describe the bug It seems a UDF with no arguments are only called once, even if signature is defined with `Volatility::Volatile` and also queried in the context of a table with multiple rows. By this I mean, for example: `select random_udf() from many_rows_table` There is a minimal repro here https://github.com/dadepo/df-repro When run the output could be: ``` +-------+------+-----+-------+ | index | uint | int | float | +-------+------+-----+-------+ | 1 | 2 | -2 | 1.0 | | 2 | 3 | 3 | 3.3 | | 3 | | | | +-------+------+-----+-------+ +---------------+ | random_normal | +---------------+ | 25.0 | | 25.0 | | 25.0 | +---------------+ ``` In the run above, the `25.0` is the result of the udf and it is repeated. ### To Reproduce A minimal reproduction can be found here https://github.com/dadepo/df-repro ### Expected behavior The UDF to be evaluated per each row output. ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
