viirya commented on issue #8866: URL: https://github.com/apache/arrow-datafusion/issues/8866#issuecomment-1892698805
A ScalarUDF which is defined as no argument one or all scalar inputs, DataFusion will assume its output is a scalar (you also return a one element array from `random_normal` UDF, but even you don't, DataFusion will take 0-index element from it to create a `ScalarValue` as output). That's why `random_normal` returns same value for all inputs (because it is treated as a scala udf returns a scalar value for all inputs). -- 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]
