Skip to content

Commit

Permalink
fix serialize error (apache#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
stdpain authored and HappenLee committed Jul 13, 2021
1 parent c8ab31b commit 581bc03
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions be/src/vec/exec/vaggregation_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,10 @@ Status AggregationNode::_serialize_without_key(RuntimeState* state, Block* block
for (int i = 0; i < _aggregate_evaluators.size(); ++i) {
_aggregate_evaluators[i]->function()->serialize(
_agg_data.without_key + _offsets_of_aggregate_states[i], buf);
value_columns[i]->insertData(buf.str().c_str(), buf.str().length());
buf.str().clear();
auto str_buffer = buf.str();
value_columns[i]->insertData(str_buffer.c_str(), str_buffer.length());
buf.str("");
buf.clear();
}
{
ColumnsWithTypeAndName data_with_schema;
Expand Down

0 comments on commit 581bc03

Please sign in to comment.