From fc01c85c5dd51dd583599b39a6bad7ab0811ea47 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Tue, 24 Sep 2024 13:35:35 +0800 Subject: [PATCH] disable some json functions pushdown (#9447) (#9463) close pingcap/tiflash#9444 Signed-off-by: ti-chi-bot Co-authored-by: xufei Co-authored-by: xufei --- dbms/src/Flash/Coprocessor/DAGUtils.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dbms/src/Flash/Coprocessor/DAGUtils.cpp b/dbms/src/Flash/Coprocessor/DAGUtils.cpp index 14e07091e8c..9eb1dbb99e2 100644 --- a/dbms/src/Flash/Coprocessor/DAGUtils.cpp +++ b/dbms/src/Flash/Coprocessor/DAGUtils.cpp @@ -142,7 +142,7 @@ const std::unordered_map scalar_func_map({ {tipb::ScalarFuncSig::LTDecimal, "less"}, {tipb::ScalarFuncSig::LTTime, "less"}, {tipb::ScalarFuncSig::LTDuration, "less"}, - {tipb::ScalarFuncSig::LTJson, "less"}, + //{tipb::ScalarFuncSig::LTJson, "less"}, {tipb::ScalarFuncSig::LEInt, "lessOrEquals"}, {tipb::ScalarFuncSig::LEReal, "lessOrEquals"}, @@ -150,7 +150,7 @@ const std::unordered_map scalar_func_map({ {tipb::ScalarFuncSig::LEDecimal, "lessOrEquals"}, {tipb::ScalarFuncSig::LETime, "lessOrEquals"}, {tipb::ScalarFuncSig::LEDuration, "lessOrEquals"}, - {tipb::ScalarFuncSig::LEJson, "lessOrEquals"}, + //{tipb::ScalarFuncSig::LEJson, "lessOrEquals"}, {tipb::ScalarFuncSig::GTInt, "greater"}, {tipb::ScalarFuncSig::GTReal, "greater"}, @@ -158,7 +158,7 @@ const std::unordered_map scalar_func_map({ {tipb::ScalarFuncSig::GTDecimal, "greater"}, {tipb::ScalarFuncSig::GTTime, "greater"}, {tipb::ScalarFuncSig::GTDuration, "greater"}, - {tipb::ScalarFuncSig::GTJson, "greater"}, + //{tipb::ScalarFuncSig::GTJson, "greater"}, {tipb::ScalarFuncSig::GreatestInt, "tidbGreatest"}, {tipb::ScalarFuncSig::GreatestReal, "tidbGreatest"}, @@ -181,7 +181,7 @@ const std::unordered_map scalar_func_map({ {tipb::ScalarFuncSig::GEDecimal, "greaterOrEquals"}, {tipb::ScalarFuncSig::GETime, "greaterOrEquals"}, {tipb::ScalarFuncSig::GEDuration, "greaterOrEquals"}, - {tipb::ScalarFuncSig::GEJson, "greaterOrEquals"}, + //{tipb::ScalarFuncSig::GEJson, "greaterOrEquals"}, {tipb::ScalarFuncSig::EQInt, "equals"}, {tipb::ScalarFuncSig::EQReal, "equals"}, @@ -189,7 +189,7 @@ const std::unordered_map scalar_func_map({ {tipb::ScalarFuncSig::EQDecimal, "equals"}, {tipb::ScalarFuncSig::EQTime, "equals"}, {tipb::ScalarFuncSig::EQDuration, "equals"}, - {tipb::ScalarFuncSig::EQJson, "equals"}, + //{tipb::ScalarFuncSig::EQJson, "equals"}, {tipb::ScalarFuncSig::NEInt, "notEquals"}, {tipb::ScalarFuncSig::NEReal, "notEquals"}, @@ -197,7 +197,7 @@ const std::unordered_map scalar_func_map({ {tipb::ScalarFuncSig::NEDecimal, "notEquals"}, {tipb::ScalarFuncSig::NETime, "notEquals"}, {tipb::ScalarFuncSig::NEDuration, "notEquals"}, - {tipb::ScalarFuncSig::NEJson, "notEquals"}, + //{tipb::ScalarFuncSig::NEJson, "notEquals"}, //{tipb::ScalarFuncSig::NullEQInt, "cast"}, //{tipb::ScalarFuncSig::NullEQReal, "cast"}, @@ -314,7 +314,7 @@ const std::unordered_map scalar_func_map({ {tipb::ScalarFuncSig::StringIsNull, "isNull"}, {tipb::ScalarFuncSig::TimeIsNull, "isNull"}, {tipb::ScalarFuncSig::IntIsNull, "isNull"}, - {tipb::ScalarFuncSig::JsonIsNull, "isNull"}, + //{tipb::ScalarFuncSig::JsonIsNull, "isNull"}, {tipb::ScalarFuncSig::BitAndSig, "bitAnd"}, {tipb::ScalarFuncSig::BitOrSig, "bitOr"}, @@ -355,7 +355,7 @@ const std::unordered_map scalar_func_map({ {tipb::ScalarFuncSig::InDecimal, "tidbIn"}, {tipb::ScalarFuncSig::InTime, "tidbIn"}, {tipb::ScalarFuncSig::InDuration, "tidbIn"}, - {tipb::ScalarFuncSig::InJson, "tidbIn"}, + //{tipb::ScalarFuncSig::InJson, "tidbIn"}, {tipb::ScalarFuncSig::IfNullInt, "ifNull"}, {tipb::ScalarFuncSig::IfNullReal, "ifNull"},