diff --git a/be/src/vec/core/block.cpp b/be/src/vec/core/block.cpp index 18d73039e5..e133834e49 100644 --- a/be/src/vec/core/block.cpp +++ b/be/src/vec/core/block.cpp @@ -827,6 +827,7 @@ Status Block::serialize(int be_exec_version, PBlock* pblock, for (const auto& c : *this) { PColumnMeta* pcm = pblock->add_column_metas(); c.to_pb_column_meta(pcm); + DCHECK(pcm->type() != PGenericType::UNKNOWN) << " forget to set pb type"; // get serialized size content_uncompressed_size += c.type->get_uncompressed_serialized_bytes(*(c.column), pblock->be_exec_version()); diff --git a/be/src/vec/data_types/data_type.cpp b/be/src/vec/data_types/data_type.cpp index 7ab7a99ca3..8b7a094dcf 100644 --- a/be/src/vec/data_types/data_type.cpp +++ b/be/src/vec/data_types/data_type.cpp @@ -174,6 +174,7 @@ PGenericType_TypeId IDataType::get_pdata_type(const IDataType* data_type) { case TypeIndex::TimeV2: return PGenericType::TIMEV2; default: + LOG(FATAL) << fmt::format("could not mapping type {} to pb type", data_type->get_type_id()); return PGenericType::UNKNOWN; } }