Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
yiguolei committed Nov 21, 2024
1 parent 1eafc83 commit b273201
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions be/src/vec/data_types/serde/data_type_date64_serde.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void DataTypeDate64SerDe::write_column_to_arrow(const IColumn& column, const Nul
for (size_t i = start; i < end; ++i) {
char buf[64];
const VecDateTimeValue* time_val = (const VecDateTimeValue*)(&col_data[i]);
int len = time_val->to_buffer(buf);
size_t len = time_val->to_buffer(buf);
if (null_map && (*null_map)[i]) {
checkArrowStatus(string_builder.AppendNull(), column.get_name(),
array_builder->type()->name());
Expand Down Expand Up @@ -305,8 +305,8 @@ Status DataTypeDate64SerDe::write_column_to_orc(const std::string& timezone, con
continue;
}

int len = binary_cast<Int64, VecDateTimeValue>(col_data[row_id])
.to_buffer(const_cast<char*>(bufferRef.data) + offset);
size_t len = binary_cast<Int64, VecDateTimeValue>(col_data[row_id])
.to_buffer(const_cast<char*>(bufferRef.data) + offset);

REALLOC_MEMORY_FOR_ORC_WRITER()

Expand Down

0 comments on commit b273201

Please sign in to comment.