eldenmoon commented on code in PR #53282:
URL: https://github.com/apache/doris/pull/53282#discussion_r2209129382
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/JsonFunctionRewrite.java:
##########
@@ -106,4 +133,24 @@ private static <T extends ScalarFunction> Expression
rewriteJsonModifyArguments(
}
return function.withChildren(convectedChildren);
}
+
+ private static <T extends ScalarFunction> Expression
rewriteJsonExtractFunctions(T function) {
+ JsonbExtract jsonExtract = new
JsonbExtract(function.children().get(0), function.children().get(1));
Review Comment:
we better test the performance when rewriting json_extract_int/string to
cast(json_extract ...), since before this PR, function just called once.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]