@@ -425,7 +425,7 @@ static bool parse_bulk_load_config_file(const std::string& config_file,
425
425
load_config.metadata_ [reader_options::DOUBLE_QUOTE] = " false" ;
426
426
load_config.metadata_ [reader_options::ESCAPE_CHAR] = " \\ " ;
427
427
load_config.metadata_ [reader_options::ESCAPING] = " false" ;
428
- load_config.metadata_ [reader_options::BLOCK_SIZE_KEY ] =
428
+ load_config.metadata_ [reader_options::BATCH_SIZE_KEY ] =
429
429
std::to_string (reader_options::DEFAULT_BLOCK_SIZE);
430
430
load_config.metadata_ [reader_options::BATCH_READER] = " false" ;
431
431
// put all key values in meta_data into metadata_
@@ -443,12 +443,12 @@ static bool parse_bulk_load_config_file(const std::string& config_file,
443
443
<< " value: " << it->second .as <std::string>();
444
444
if (reader_options::CSV_META_KEY_WORDS.find (key) !=
445
445
reader_options::CSV_META_KEY_WORDS.end ()) {
446
- if (key == reader_options::BLOCK_SIZE_KEY ) {
446
+ if (key == reader_options::BATCH_SIZE_KEY ) {
447
447
// special case for block size
448
448
// parse block size (MB, b, KB, B) to bytes
449
449
auto block_size_str = it->second .as <std::string>();
450
450
auto block_size = parse_block_size (block_size_str);
451
- load_config.metadata_ [reader_options::BLOCK_SIZE_KEY ] =
451
+ load_config.metadata_ [reader_options::BATCH_SIZE_KEY ] =
452
452
std::to_string (block_size);
453
453
} else {
454
454
load_config.metadata_ [key] = it->second .as <std::string>();
@@ -608,10 +608,10 @@ bool LoadingConfig::GetIsDoubleQuoting() const {
608
608
609
609
// get block size
610
610
int32_t LoadingConfig::GetBlockSize () const {
611
- if (metadata_.find (reader_options::BLOCK_SIZE_KEY ) == metadata_.end ()) {
611
+ if (metadata_.find (reader_options::BATCH_SIZE_KEY ) == metadata_.end ()) {
612
612
return reader_options::DEFAULT_BLOCK_SIZE;
613
613
}
614
- auto str = metadata_.at (reader_options::BLOCK_SIZE_KEY );
614
+ auto str = metadata_.at (reader_options::BATCH_SIZE_KEY );
615
615
return std::stoi (str);
616
616
}
617
617
0 commit comments