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: 1 addition & 1 deletion src/csv/colbased_chunk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ namespace CSV {
void convert_to_cat_or_text() {
if (number_data_.size() > 0) {
for (size_t i = 0; i < number_data_.size(); i++) {
add_cat_data(std::to_string(number_data_.get<float>(i)));
cat_data_.push_back((long long)get_string_id(std::to_string(number_data_.get<float>(i))));
}
number_data_.clear();
number_data_.shrink_to_fit();
Expand Down
6 changes: 3 additions & 3 deletions src/csv/colbased_worker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class ColBasedParseWorker {
current += nread;
}
epos_line = end + 1;
//std::cout << "start line: " << spos_line << " end line: " << epos_line << std::endl;
//std::cout << "start line: " << spos_linen << " end line: " << epos_line << std::endl;
/*
If we're in the last column position, process the token as some files
do not end with a newline.
Expand Down Expand Up @@ -318,7 +318,7 @@ class ColBasedParseWorker {
exp_possible = i == token_.size();
}
}
}
//}
if (integer_possible) {
handlers_[column_index_]->process_integer(fast_atoi<long long>(token_.begin(), token_.end()));
}
Expand All @@ -332,7 +332,7 @@ class ColBasedParseWorker {
}
handlers_[column_index_]->process_categorical(token_aux_.begin(), token_aux_.end());
token_aux_.clear();
}
}}
}
column_index_++;
token_.clear();
Expand Down
Loading