Skip to content

v2.0.1

Latest

Choose a tag to compare

@jqnatividad jqnatividad released this 29 Nov 23:36
66f04c6

Fixed

  • A byte- or record-limited sample that ended exactly at the end of a record dropped that complete record as if it were cut off (#75 regression in 2.0.0). When it was the only data row, sniffing failed: # exported data\n1,2,3\n4,5,6\n with -b 21 reported "No valid dialect found". The trim now checks whether the next byte is a line break, and keeps the sample as is if it is, unless the sample ends inside a double-quoted field (an odd number of "), where that line break belongs to the field and the half-record is still dropped. No benchmark corpus file changes at default sampling, --all, or 8/64/256 KiB byte samples
  • A blank structural-preamble row such as ,, above the data was taken as the header (#67 rule), giving blank field names and an extra column. A row is now promoted to header only if at least one of its cells is non-blank
  • The SampleSize::Bytes documentation now states when the sample is kept as read: no line break, a cut that would remove more than half of it, or UTF-16 input

Full Changelog: v2.0.0...v2.0.1