From e9abde09605a333e5576bc0154c75cb87751fc10 Mon Sep 17 00:00:00 2001 From: Socrates Date: Fri, 29 Nov 2024 13:07:34 +0800 Subject: [PATCH] add DCHECK --- be/src/vec/exec/format/orc/vorc_reader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/be/src/vec/exec/format/orc/vorc_reader.cpp b/be/src/vec/exec/format/orc/vorc_reader.cpp index 548a14825bae0f..df8ec52efc2896 100644 --- a/be/src/vec/exec/format/orc/vorc_reader.cpp +++ b/be/src/vec/exec/format/orc/vorc_reader.cpp @@ -568,12 +568,14 @@ std::tuple convert_to_orc_literal(const orc::Type* type, std::tuple OrcReader::_make_orc_literal( const VSlotRef* slot_ref, const VLiteral* literal) { + DCHECK(_col_name_to_file_col_name_low_case.contains(slot_ref->expr_name())); auto file_col_name_low_case = _col_name_to_file_col_name_low_case[slot_ref->expr_name()]; if (!_type_map.contains(file_col_name_low_case)) { // TODO: this is for acid table LOG(WARNING) << "Column " << slot_ref->expr_name() << " not found in _type_map"; return std::make_tuple(false, orc::Literal(false), orc::PredicateDataType::LONG); } + DCHECK(_type_map.contains(file_col_name_low_case)); const auto* orc_type = _type_map[file_col_name_low_case]; if (!TYPEKIND_TO_PREDICATE_TYPE.contains(orc_type->getKind())) { LOG(WARNING) << "Unsupported Push Down Orc Type [TypeKind=" << orc_type->getKind() << "]";