Describe the bug
Follow-up work from PR #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:
Expected behavior
The function should be null-propagating with respect to count:
If count[i] is NULL, result[i] should be NULL
Additional context
No response
Describe the bug
Follow-up work from PR #20049.
The current implementation of
array_repeatdoes not correctly handle null inputs, which leads to behavior that isinconsistent with typical SQL null semantics.(potential bug)
To Reproduce
Example input:
Run:
Current behavior:
Expected behavior
The function should be null-propagating with respect to count:
If count[i] is NULL, result[i] should be NULL
Additional context
No response