Skip to content

Commit

Permalink
fix comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
hubgeter committed Nov 13, 2024
1 parent b478158 commit 7da0fde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions be/src/vec/exec/format/json/new_json_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1178,8 +1178,7 @@ Status NewJsonReader::_read_one_message(std::unique_ptr<uint8_t[]>* file_buf, si
}
// ---------SIMDJSON----------
// simdjson, replace none simdjson function if it is ready
Status NewJsonReader::_simdjson_init_reader(bool is_load) {
_is_load = is_load;
Status NewJsonReader::_simdjson_init_reader() {
RETURN_IF_ERROR(_get_range_params());

RETURN_IF_ERROR(_open_file_reader(false));
Expand Down
6 changes: 5 additions & 1 deletion be/src/vec/exec/format/json/new_json_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class NewJsonReader : public GenericReader {
Status _read_one_message(std::unique_ptr<uint8_t[]>* file_buf, size_t* read_size);

// simdjson, replace none simdjson function if it is ready
Status _simdjson_init_reader(bool is_load);
Status _simdjson_init_reader();
Status _simdjson_parse_json(size_t* size, bool* is_empty_row, bool* eof,
simdjson::error_code* error);
Status _get_json_value(size_t* size, bool* eof, simdjson::error_code* error,
Expand Down Expand Up @@ -298,6 +298,10 @@ class NewJsonReader : public GenericReader {
int32_t skip_bitmap_col_idx {-1};

bool _is_load = true;
//Used to indicate whether it is a stream load. When loading, only data will be inserted into columnString.
//If an illegal value is encountered during the load process, `_append_error_msg` should be called
//instead of directly returning `Status::DataQualityError`

bool _is_hive_table = false;
// In hive : create table xxx ROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe';
// Hive will not allow you to create columns with the same name but different case, including field names inside
Expand Down

0 comments on commit 7da0fde

Please sign in to comment.