GH-649 Ignire factory bean names during discovery of a function

Resolves #649
This commit is contained in:
Oleg Zhurakousky
2021-02-15 17:53:12 +01:00
parent 9b62f6e3f8
commit 73bd787c8d
2 changed files with 6 additions and 5 deletions

View File

@@ -211,7 +211,8 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
.collect(Collectors.toList());
if (eligibleFunction.size() == 1
&& !eligibleFunction.get(0).equals(functionDefinition)
&& !functionDefinition.contains("|")) {
&& !functionDefinition.contains("|")
&& !eligibleFunction.get(0).startsWith("&")) {
functionDefinition = eligibleFunction.get(0);
}
}