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
{{ message }}
Repository navigation
append() drops every remaining argument when the first one is null, contradicting its own per-argument null skip #7028
append() skips a null argument when it appears anywhere except first, but drops every remaining argument when the FIRST one is null. The method contradicts its own per-argument null handling.
Repro
Measured at c50338bd8:
'x'.append(null,'A','B') -> "x" A and B silently dropped
'x'.append('A',null,'B') -> "xAB" the null is skipped, the rest appended
The second line establishes the intended contract: a null argument is skipped and the others are still appended. The first line breaks it - a leading null terminates the whole append.
Impact
append() over a set of optional values is the natural use - name.append(middle, last) where middle may be null. If the first optional value happens to be null, every later value is lost, and the result is a plausible-looking shorter string with no error. Whether a row is correct then depends on which of its optional columns happen to be populated.
Suggested fix
Make the first argument take the same path as the rest: continue past a null rather than returning. A test asserting 'x'.append(null,'A','B') == 'xAB' alongside the existing middle-null case pins both directions.
Scope / confidence
High - reproduced, with the contrasting case in the same run.
Fixed in #7092 (26.9.1). A null argument to append() is now skipped wherever it appears: 'x'.append(null, 'A', 'B') returns xAB, the same as 'x'.append('A', null, 'B').
❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
Activity
lvca commentedon Sep 3, 2026
Fixed in #7092 (26.9.1). A
nullargument toappend()is now skipped wherever it appears:'x'.append(null, 'A', 'B')returnsxAB, the same as'x'.append('A', null, 'B').❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.
Fix split()/collection-method receivers, append() leading null, shutd…
fix(sql): a null argument to remove()/removeAll() no longer means two…