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
Activity
crepererum commentedon Apr 20, 2023
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.
alamb commentedon Apr 24, 2023
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
alamb commentedon Apr 24, 2023
Added to structured type tracking ticket: #2326