From f0cdf2fd53d3a6e662653ec71dfe689725144035 Mon Sep 17 00:00:00 2001 From: obdev Date: Tue, 25 Oct 2022 11:33:19 +0800 Subject: [PATCH] [CP][BUGFIX] fix lob merge with null partition key col --- src/storage/blocksstable/ob_lob_data_writer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/storage/blocksstable/ob_lob_data_writer.cpp b/src/storage/blocksstable/ob_lob_data_writer.cpp index 2bb145bc89..d68c3caea7 100644 --- a/src/storage/blocksstable/ob_lob_data_writer.cpp +++ b/src/storage/blocksstable/ob_lob_data_writer.cpp @@ -739,7 +739,9 @@ int ObLobDataWriter::check_rowkey(const ObStoreRowkey& rowkey, bool& check_ret) } else { check_ret = true; for (int64_t i = 0; check_ret && i < rowkey_column_cnt_; i++) { - if (column_types_.at(i).get_type() != rowkey.get_obj_ptr()[i].get_type()) { + if (rowkey.get_obj_ptr()[i].is_null()) { + // pass + } else if (column_types_.at(i).get_type() != rowkey.get_obj_ptr()[i].get_type()) { check_ret = false; } } -- GitLab