You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
array_concat fails with when passed NULL list literals #16349
The array_concat function throws an Arrow compute error concat requires input of at least one array when called with NULL list literals (e.g., NULL::integer[]). The function incorrectly attempts to pass empty arrays to Arrow's concat function instead of recognizing that NULL list literals should be handled as null inputs.
Note: Mixed cases work correctly (e.g., array_concat(NULL::integer[], [1,2,3]) returns [1,2,3]), so the issue is specifically when ALL arguments are NULL arrays.
To Reproduce
-- This query should return NULL but throws an error instead
SELECT array_concat(NULL::integer[]);
-- These variations also fail:
SELECT array_concat(NULL::integer[], NULL::integer[]);
SELECT array_concat(NULL::text[]);
SELECT array_concat(NULL::bigint[]);
Expected behavior
The function should handle NULL list literals gracefully and return NULL, similar to how other array functions handle NULL inputs:
Activity
alexanderbianchi commentedon Jun 9, 2025
take