Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include null in any typemask #1395

Merged
merged 1 commit into from
Sep 11, 2023
Merged

Include null in any typemask #1395

merged 1 commit into from
Sep 11, 2023

Conversation

johnkerl
Copy link
Owner

@johnkerl johnkerl commented Sep 11, 2023

Before:

echo '[{"a":"b"},{"a":3},{"a":null}]' | /usr/local/bin/mlr --json put 'for (k,v in $*) {}'
mlr: couldn't assign variable any v from value null null

After:

echo '[{"a":"b"},{"a":3},{"a":null}]' | ./mlr --json put 'for (k,v in $*) {}'
[
{
  "a": "b"
},
{
  "a": 3
},
{
  "a": null
}
]

Fixes #1394

@johnkerl johnkerl merged commit 087f4bb into main Sep 11, 2023
6 checks passed
@johnkerl johnkerl deleted the kerl/any-includes-null branch September 11, 2023 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mlr: couldn't assign variable any v from value null null
1 participant