Skip to content

Commit

Permalink
disable some json functions pushdown (#9447) (#9463)
Browse files Browse the repository at this point in the history
close #9444

Signed-off-by: ti-chi-bot <[email protected]>

Co-authored-by: xufei <[email protected]>
Co-authored-by: xufei <[email protected]>
  • Loading branch information
3 people authored Sep 24, 2024
1 parent 6b739dc commit fc01c85
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dbms/src/Flash/Coprocessor/DAGUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,23 +142,23 @@ const std::unordered_map<tipb::ScalarFuncSig, String> 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"},
{tipb::ScalarFuncSig::LEString, "lessOrEquals"},
{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"},
{tipb::ScalarFuncSig::GTString, "greater"},
{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"},
Expand All @@ -181,23 +181,23 @@ const std::unordered_map<tipb::ScalarFuncSig, String> 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"},
{tipb::ScalarFuncSig::EQString, "equals"},
{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"},
{tipb::ScalarFuncSig::NEString, "notEquals"},
{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"},
Expand Down Expand Up @@ -314,7 +314,7 @@ const std::unordered_map<tipb::ScalarFuncSig, String> 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"},
Expand Down Expand Up @@ -355,7 +355,7 @@ const std::unordered_map<tipb::ScalarFuncSig, String> 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"},
Expand Down

0 comments on commit fc01c85

Please sign in to comment.