Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions engine/CSVParser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ bool DataSpec::processChunk(std::istream& input, const TokenizerFunction& tf, si
if (starts.size()-1 < firstEmpty && starts.back()<nCols && emptyTail(line, starts.back()))
firstEmpty=starts.size()-1;
}
if (starts.empty())
throw runtime_error("CSV file is empty");
// compute average of starts, then look for first row that drops below average
double sum=0;
for (unsigned long i=0; i<starts.size(); ++i)
Expand Down
Loading
Loading