Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
hubgeter committed Sep 12, 2023
1 parent 6ac4c2c commit 7bdf10c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion be/src/exec/text_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ bool TextConverter::_write_data(const TypeDescriptor& type_desc,
kv = i;
continue;
}
if ((i == slice.size || slice[i] == collection_delimiter)&& i >= kv + 1) {
if ((i == slice.size || slice[i] == collection_delimiter) && i >= kv + 1) {
ranges.push_back({from, kv, i - 1});
from = i + 1;
kv = from;
Expand Down
4 changes: 2 additions & 2 deletions be/src/vec/data_types/serde/data_type_map_serde.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ Status DataTypeMapSerDe::deserialize_one_cell_from_hive_text(IColumn& column, Sl
kv = i;
continue;
}
if ((i == slice.size || slice[i] == collection_delimiter)&& i >= kv + 1) {
key_slices.push_back({slice.data + from, kv - from});
if ((i == slice.size || slice[i] == collection_delimiter) && i >= kv + 1) {
key_slices.push_back({slice.data + from, kv - from});
value_slices.push_back({slice.data + kv + 1, i - 1 - kv});
from = i + 1;
kv = from;
Expand Down

0 comments on commit 7bdf10c

Please sign in to comment.