Skip to content

Commit

Permalink
Fix #1102 (#1163)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl authored Dec 29, 2022
1 parent a55e78c commit 7bf358e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/pkg/input/record_reader_tsv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions test/cases/io-spec-tsv/0004/cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mlr --itsv --ojson cat ${CASEDIR}/single-column-with-blank.json
2 changes: 2 additions & 0 deletions test/cases/io-spec-tsv/0004/experr
Original file line number Diff line number Diff line change
@@ -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.
.
Empty file.
Empty file.
6 changes: 6 additions & 0 deletions test/cases/io-spec-tsv/0004/single-column-with-blank.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
a
1
2

4
5

0 comments on commit 7bf358e

Please sign in to comment.