Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hubgeter committed Oct 8, 2024
1 parent 8718e83 commit 65f9290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions be/src/vec/data_types/serde/data_type_serde.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ class DataTypeSerDe {
virtual Status deserialize_column_from_fixed_json(IColumn& column, Slice& slice, int rows,
int* num_deserialized,
const FormatOptions& options) const {
//In this function implementation, we need to consider the case where rows is 0, 1, and other larger integers.
if (rows < 1) [[unlikely]] {
return Status::OK();
}
Expand Down
1 change: 1 addition & 0 deletions be/src/vec/exec/format/parquet/vparquet_group_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ Status RowGroupReader::_fill_partition_columns(
auto _text_serde = slot_desc->get_data_type_ptr()->get_serde();
Slice slice(value.data(), value.size());
int num_deserialized = 0;
// Be careful when reading empty rows from parquet row groups.
if (_text_serde->deserialize_column_from_fixed_json(*col_ptr, slice, rows,
&num_deserialized,
_text_formatOptions) != Status::OK()) {
Expand Down

0 comments on commit 65f9290

Please sign in to comment.