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

Fatal-on-data-error mlr -x option #1373

Merged
merged 22 commits into from
Aug 30, 2023
Merged

Fatal-on-data-error mlr -x option #1373

merged 22 commits into from
Aug 30, 2023

Conversation

johnkerl
Copy link
Owner

@johnkerl johnkerl commented Aug 27, 2023

For #1106.

More examples in on-line docs but TL;DR

mlr --csv --from data-error.csv cat
x
1
2
3
text
4
mlr --csv --from data-error.csv put '$y = log10($x)'
x,y
1,0
2,0.3010299956639812
3,0.4771212547196624
text,(error)
4,0.6020599913279624
mlr -x --csv --from data-error.csv put '$y = log10($x)'
x,y
1,0
2,0.3010299956639812
3,0.4771212547196624
mlr: data error at NR=4 FNR=4 FILENAME=data-error.csv
mlr: field y: log10: unacceptable type string with value "text"
mlr: exiting due to data error.

Also with -x in ~/.mlrrc or export MLR_FAIL_ON_DATA_ERROR=true.

@johnkerl johnkerl force-pushed the kerl/fatal-on-error-option branch 8 times, most recently from d9e6aef to d4ef77f Compare August 30, 2023 03:53
@johnkerl johnkerl force-pushed the kerl/fatal-on-error-option branch 5 times, most recently from 7a228d7 to 2ccf594 Compare August 30, 2023 14:54
@johnkerl johnkerl changed the title Fatal-on-data-error mlr -x option [WIP] Fatal-on-data-error mlr -x option Aug 30, 2023
@johnkerl johnkerl marked this pull request as ready for review August 30, 2023 23:16
@johnkerl johnkerl merged commit 0493a0d into main Aug 30, 2023
6 checks passed
@johnkerl johnkerl deleted the kerl/fatal-on-error-option branch August 30, 2023 23:39
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.

1 participant