This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
commit 5e309894d4dddffc99bca726e9b88617e8af079c Author: morrySnow <[email protected]> AuthorDate: Tue Apr 16 18:30:55 2024 +0800 [opt](Nereids) auto fallback when meet udf override (#33708) --- .../src/main/java/org/apache/doris/catalog/FunctionRegistry.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/FunctionRegistry.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/FunctionRegistry.java index 56016ad071a..72a82b177b6 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/FunctionRegistry.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/FunctionRegistry.java @@ -154,7 +154,14 @@ public class FunctionRegistry { } if (candidateBuilders.size() > 1) { String candidateHints = getCandidateHint(name, candidateBuilders); - // NereidsPlanner not supported override function by the same arity, should we support it? + // TODO: NereidsPlanner not supported override function by the same arity, we will support it later + if (ConnectContext.get() != null) { + try { + ConnectContext.get().getSessionVariable().enableFallbackToOriginalPlannerOnce(); + } catch (Throwable t) { + // ignore error + } + } throw new AnalysisException("Function '" + qualifiedName + "' is ambiguous: " + candidateHints); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
