-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Labels
Description
Repro is with Zed commit 4dc6236.
While helping a community Slack user I bumped into the following surprising result:
$ zq -version
Version: v1.14.0-2-g4dc62369
$ echo '1 2 null 4' | zq -z 'collect(this)' -
[1,2,4]
I would have expected the null value to still be in the array created.
Presumably due to the same effect, here collect() is not even returning an array.
$ echo 'null null' | zq -z 'collect(this)' -
null
union() has similar behaviors.
$ echo '1 2 null 4' | zq -z 'union(this)' -
|[1,2,4]|
$ echo 'null null' | zq -z 'union(this)' -
null
If we decide the current behavior is intentional and something we intend to keep, I'd suggest we start mentioning it in the docs with an explanation.
Reactions are currently unavailable