Skip to content

Commit

Permalink
Merge pull request #10650 from hannes/noprintf
Browse files Browse the repository at this point in the history
Disable print method for CSV scanner for R build
  • Loading branch information
Mytherin authored and krlmlr committed Feb 23, 2024
1 parent 992566d commit 5835084
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -30,17 +30,21 @@ CSVIterator::CSVIterator() : is_set(false) {
}

void CSVBoundary::Print() {
#ifndef DUCKDB_DISABLE_PRINT
std::cout << "---Boundary: " << boundary_idx << " ---" << std::endl;
std::cout << "File Index:: " << file_idx << std::endl;
std::cout << "Buffer Index: " << buffer_idx << std::endl;
std::cout << "Buffer Pos: " << buffer_pos << std::endl;
std::cout << "End Pos: " << end_pos << std::endl;
std::cout << "------------" << end_pos << std::endl;
#endif
}

void CSVIterator::Print() {
#ifndef DUCKDB_DISABLE_PRINT
boundary.Print();
std::cout << "Is set: " << is_set << std::endl;
#endif
}

bool CSVIterator::Next(CSVBufferManager &buffer_manager) {
Expand Down

0 comments on commit 5835084

Please sign in to comment.