findepi opened a new pull request, #13644: URL: https://github.com/apache/datafusion/pull/13644
`ColumnarValue::into_array` takes ownership of the columnar value and so requires copying data if the call site doesn't own the value. This does not matter in many cases, since the `into_array` internally will copy data even more. It does matter however for the cases when to-array is called with desired array length of 1, which may happen when UDF implementation attempts to normalize arguments into arrays without expanding them. This pattern can be seen in regexp functions, but can be useful in downstream projects too. -- 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-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org