From 037c03026838b4a616fbfb820764a8aeabc29f62 Mon Sep 17 00:00:00 2001 From: eldenmoon <15605149486@163.com> Date: Wed, 28 Aug 2024 02:14:12 +0800 Subject: [PATCH] [Fix](branch-2.1) fix manual pick with mistake when handling decimal type introduced by #39843 --- be/src/vec/exec/scan/vscan_node.cpp | 2 +- regression-test/suites/nereids_arith_p0/decimal.groovy | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/be/src/vec/exec/scan/vscan_node.cpp b/be/src/vec/exec/scan/vscan_node.cpp index 258e225a26eb18f..487a9ae44d4c6d6 100644 --- a/be/src/vec/exec/scan/vscan_node.cpp +++ b/be/src/vec/exec/scan/vscan_node.cpp @@ -393,7 +393,7 @@ Status VScanNode::_normalize_conjuncts() { continue; } } - init_value_range(slot, slot->type().type); + init_value_range(slot, slot->type()); } get_cast_types_for_variants(); diff --git a/regression-test/suites/nereids_arith_p0/decimal.groovy b/regression-test/suites/nereids_arith_p0/decimal.groovy index 12665ce86da8168..112aa3d1276f504 100644 --- a/regression-test/suites/nereids_arith_p0/decimal.groovy +++ b/regression-test/suites/nereids_arith_p0/decimal.groovy @@ -2309,6 +2309,9 @@ suite('nereids_arith_p0_decimal') { `b` DECIMALV3(9, 3) NOT NULL ) DISTRIBUTED BY HASH(a) PROPERTIES("replication_num" = "1"); """ + sql "set experimental_enable_pipeline_x_engine = false" + sql "select a + b from test_arithmetic_expressions" + sql "set experimental_enable_pipeline_x_engine = true" sql "select a + b from test_arithmetic_expressions" sql """drop table if exists test_arithmetic_expressions""" } \ No newline at end of file