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
Is your feature request related to a problem or challenge?
coalsece currently does not support structs. If it would however, I think it should only consider top-level NULLs, so coalsece(NULL, {a: 1, b: NULL}, {a: 2, b: 3}) = {a: 1, b: NULL}. However sometimes it would be handy to fill in fields recursively. So coalsece_nested(NULL, {a: 1, b: NULL}, {a: 2, b: 3}) = {a: 1, b: 3}
Describe the solution you'd like
Have a coalesce variant that supports structs by traversing them recursively. So:
If this is a desired feature to have in DataFusion, I can contribute it. I have this nearly ready because we probably need a (somewhat simpler version of it) in InfluxDB IOx anyways.
I personally think we should start in IOx -- I am not sure how widely useful this is to the DataFusion community as a whole -- maybe others can weigh in
Is your feature request related to a problem or challenge?
coalsece
currently does not support structs. If it would however, I think it should only consider top-level NULLs, socoalsece(NULL, {a: 1, b: NULL}, {a: 2, b: 3}) = {a: 1, b: NULL}
. However sometimes it would be handy to fill in fields recursively. Socoalsece_nested(NULL, {a: 1, b: NULL}, {a: 2, b: 3}) = {a: 1, b: 3}
Describe the solution you'd like
Have a
coalesce
variant that supports structs by traversing them recursively. So:Describe alternatives you've considered
-
Additional context
A user that fully knows the type could manually construct this using
coalesce
andnamed_struct
(proposed in #5861).Prior art:
pg_rowalesce
extensionThe text was updated successfully, but these errors were encountered: