lyne7-sc opened a new issue, #20075: URL: https://github.com/apache/datafusion/issues/20075
### Describe the bug Follow-up work from PR https://github.com/apache/datafusion/pull/20049. The current implementation of `array_repeat` does not correctly handle null inputs, which leads to behavior that is inconsistent with typical SQL null semantics.(potential bug) ### To Reproduce Example input: ``` array = [1, 2, 3] count = [2, NULL, 1] ``` Run: ``` SELECT array_repeat(array, count); ``` Current behavior: ``` [ [1, 1], [], [3] ] ``` ### Expected behavior The function should be null-propagating with respect to count: If count[i] is NULL, result[i] should be NULL ``` [ [1, 1], NULL, [3] ] ``` ### 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
