Skip to content

Commit

Permalink
[feat][serial] Compatible with old version.
Browse files Browse the repository at this point in the history
  • Loading branch information
nokiaMS authored and rock-git committed Jan 21, 2025
1 parent 573c054 commit 26d4ef9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coprocessor/coprocessor_v2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ butil::Status CoprocessorV2::Open(const std::any& coprocessor) {

result_record_encoder_ = std::make_shared<RecordEncoder>(coprocessor_.schema_version(), result_serial_schemas_,
coprocessor_.result_schema().common_id());
result_record_encoder_->SetCodecVersion(coprocessor_.codec_version());

#if defined(TEST_COPROCESSOR_V2_MOCK)
rel_runner_ = std::make_shared<rel::mock::RelRunner>();
Expand Down Expand Up @@ -609,7 +610,7 @@ butil::Status CoprocessorV2::GetKvFromExprEndOfFinish(std::vector<pb::common::Ke
});
}
// int codec_version = GetCodecVersion(kv.key());
status = RelExprHelper::TransFromOperandWrapper(0x02, result_operand_ptr, result_serial_schemas_,
status = RelExprHelper::TransFromOperandWrapper(coprocessor_.codec_version(), result_operand_ptr, result_serial_schemas_,
result_column_indexes_, result_record);
if (!status.ok()) {
DINGO_LOG(ERROR) << status.error_cstr();
Expand Down

0 comments on commit 26d4ef9

Please sign in to comment.