Summary
This behavior was first noticed in the the test described in #682, where it was expected that using coalesce would pick the second record, but it always gets the first.
When a record is created during execution, it will always be non-null, even if all fields are null. This is expected behavior (links?). In the below query, the extend creates a new record and thus the coalesce (which comes from the _else) always chooses that first record.
Feature Request
This use case may be summarized as
- I create a record from fields in Table A that I want
- I create a similar record from fields in Table B
- If all fields in record A are
null, I want to use record B hereafter.
See Ben's latest comment for suggestions on how we may want to implement this existing behavior.