case
when int_values is null or array_length(int_values,1) is null then null
else unnest(int_values)
end as value
from the_table;
ERROR: set-returning functions are not allowed in CASE
Обсуждают сегодня