Currently, MV_APPEND expects exactly two arguments:
MV_APPEND(a, b)
appending more than two fields needs something like this:
MV_APPEND(a,MV_APPEND(b,c))
Ideally MV_APPEND supports 2-n number of arguments:
MV_APPEND(a, b, c)
Bonus points for some kind of way of being able to handle null values in a way that MV_APPEND will just ignore the value instead of returning null, but not really related to this ask. Right now the workaround for me is to COALESCE into a string that I can later match on to remove items again. Alternatively, something like array literals would be amazing:
Currently, MV_APPEND expects exactly two arguments:
MV_APPEND(a, b)
appending more than two fields needs something like this:
MV_APPEND(a,MV_APPEND(b,c))
Ideally MV_APPEND supports 2-n number of arguments:
MV_APPEND(a, b, c)
Bonus points for some kind of way of being able to handle null values in a way that MV_APPEND will just ignore the value instead of returning
null
, but not really related to this ask. Right now the workaround for me is to COALESCE into a string that I can later match on to remove items again. Alternatively, something like array literals would be amazing:`MV_APPEND(a, b, COALESCE(c, []))