Skip to content

Commit

Permalink
fix ReadCsv bug for string data
Browse files Browse the repository at this point in the history
  • Loading branch information
saminbassiri committed Jul 29, 2024
1 parent c1ee895 commit 4fc65f8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/runtime/local/io/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,12 @@ inline size_t setCString(const char * str, std::string *res,const char delim){
is_not_end -= (!is_multiLine && *(str + pos) == delim);
}

// if str is the last column, then it do not end with a delim
if(is_not_end) pos--;

if(is_multiLine)
res->append(str + 1, pos - 1);
else
res->append(str, pos);

if(is_multiLine) pos++;

return pos;
}

0 comments on commit 4fc65f8

Please sign in to comment.