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

* Fatal-on-data-error `mlr -x` option [WIP]

* arithmetic.go error-reason propagation

* more

* more

* more

* renames

* doc page

* namefix

* fix broken test

* make dev
This commit is contained in:
John Kerl 2023-08-30 19:39:22 -04:00 committed by GitHub
parent 879f272f79
commit 0493a0debd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
63 changed files with 1648 additions and 852 deletions

View file

@ -21,6 +21,6 @@ n,sec,gmt
20,2000000000.99900007,2033-05-18T03:33:20.9Z
21,2000000000.99999905,2033-05-18T03:33:20.9Z
22,2000000001.00000000,2033-05-18T03:33:21.0Z
23,,
24,x,x
25,123x,123x
23,,(error)
24,x,(error)
25,123x,(error)

View file

@ -21,6 +21,6 @@ n,sec,gmt
20,2000000000.99900007,2033-05-18T03:33:20.999Z
21,2000000000.99999905,2033-05-18T03:33:20.999Z
22,2000000001.00000000,2033-05-18T03:33:21.000Z
23,,
24,x,x
25,123x,123x
23,,(error)
24,x,(error)
25,123x,(error)

View file

@ -21,6 +21,6 @@ n,sec,gmt
20,2000000000.99900007,2033-05-18T03:33:20.999000Z
21,2000000000.99999905,2033-05-18T03:33:20.999999Z
22,2000000001.00000000,2033-05-18T03:33:21.000000Z
23,,
24,x,x
25,123x,123x
23,,(error)
24,x,(error)
25,123x,(error)

View file

@ -1 +1 @@
mlr --itsv --ojson cat ${CASEDIR}/single-column-with-blank.json
mlr --itsv --ojson cat ${CASEDIR}/single-column-with-blank.tsv

View file

@ -1,2 +1,2 @@
mlr: mlr: TSV header/data length mismatch 1 != 0 at filename test/cases/io-spec-tsv/0004/single-column-with-blank.json line 4.
mlr: mlr: TSV header/data length mismatch 1 != 0 at filename test/cases/io-spec-tsv/0004/single-column-with-blank.tsv line 4.
.

View file

@ -0,0 +1,8 @@
[
{
"a": 1
},
{
"a": 2
}
]