From 41c067141f761e0003fcf6397d6e50b22a8729bc Mon Sep 17 00:00:00 2001 From: obdev Date: Mon, 27 Feb 2023 09:11:11 +0000 Subject: [PATCH] [BUGFIX] fix lob type pushdown filter def val --- src/sql/engine/basic/ob_pushdown_filter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sql/engine/basic/ob_pushdown_filter.cpp b/src/sql/engine/basic/ob_pushdown_filter.cpp index 70bcf66541..cb65926765 100644 --- a/src/sql/engine/basic/ob_pushdown_filter.cpp +++ b/src/sql/engine/basic/ob_pushdown_filter.cpp @@ -827,8 +827,8 @@ int ObPushdownFilterExecutor::init_filter_param( } else if (!def_cell.is_nop_value()) { if (OB_FAIL(default_datum.from_obj(def_cell))) { LOG_WARN("convert obj to datum failed", K(ret), K(col_params_.count()), K(def_cell)); - } else { - // def value must have no lob header + } else if (col_params.at(idx)->get_meta_type().is_lob_storage() && !def_cell.is_null()) { + // lob def value must have no lob header when not null // When do lob pushdown, should add lob header for default value ObString data = default_datum.get_string(); ObString out;