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 ran, 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