Closed kika closed 1 year ago
I also observe the same panic if I just qsv sniff < nonempty.csv
while qsv sniff nonempty.csv
works just fine.
Thanks for the report @kika .
sniff
actually doesn't work with stdin, so adjusted it accordingly.
And as suggested, it also now handles empty files.
Describe the bug
qsv sniff
panics when run on a zero length fileTo Reproduce Steps to reproduce the behavior:
touch empty.csv
qsv sniff empty.csv
Expected behavior Either a message to stderr that the file is empty or just silently ignore (nothing to sniff - nothing to do?)
Screenshots/Backtrace/Sample Data
Desktop (please complete the following information):
qsv 0.89.0-mimalloc-apply;-10-10;18.12 GiB-0B-22.65 GiB-64.00 GiB (aarch64-apple-darwin compiled with Rust 1.67.1) compiled