Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eldenmoon committed Aug 15, 2024
1 parent 036a1c3 commit 323277a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions be/src/vec/data_types/serde/data_type_object_serde.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,13 @@ void DataTypeObjectSerDe::write_one_cell_to_jsonb(const IColumn& column, JsonbWr
result.writeStartString();
result.writeString(value_str.data(), value_str.size());
result.writeEndString();
return;
} else {
// write a json binary
result.writeStartBinary();
result.writeBinary(json_parser.getWriter().getOutput()->getBuffer(),
json_parser.getWriter().getOutput()->getSize());
result.writeEndBinary();
}
result.writeStartBinary();
result.writeBinary(json_parser.getWriter().getOutput()->getBuffer(),
json_parser.getWriter().getOutput()->getSize());
result.writeEndBinary();
}

void DataTypeObjectSerDe::read_one_cell_from_jsonb(IColumn& column, const JsonbValue* arg) const {
Expand Down

0 comments on commit 323277a

Please sign in to comment.