mirror of
https://github.com/johnkerl/miller.git
synced 2026-08-01 04:01:58 +00:00
parent
a55e78c45a
commit
7bf358e497
6 changed files with 9 additions and 6 deletions
|
|
@ -178,12 +178,6 @@ func getRecordBatchExplicitTSVHeader(
|
|||
}
|
||||
}
|
||||
|
||||
if line == "" {
|
||||
// Reset to new schema
|
||||
reader.headerStrings = nil
|
||||
continue
|
||||
}
|
||||
|
||||
fields := reader.fieldSplitter.Split(line)
|
||||
|
||||
if reader.headerStrings == nil {
|
||||
|
|
|
|||
1
test/cases/io-spec-tsv/0004/cmd
Normal file
1
test/cases/io-spec-tsv/0004/cmd
Normal file
|
|
@ -0,0 +1 @@
|
|||
mlr --itsv --ojson cat ${CASEDIR}/single-column-with-blank.json
|
||||
2
test/cases/io-spec-tsv/0004/experr
Normal file
2
test/cases/io-spec-tsv/0004/experr
Normal file
|
|
@ -0,0 +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.
|
||||
.
|
||||
0
test/cases/io-spec-tsv/0004/expout
Normal file
0
test/cases/io-spec-tsv/0004/expout
Normal file
0
test/cases/io-spec-tsv/0004/should-fail
Normal file
0
test/cases/io-spec-tsv/0004/should-fail
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
a
|
||||
1
|
||||
2
|
||||
|
||||
4
|
||||
5
|
||||
Loading…
Add table
Add a link
Reference in a new issue