kingbabingge commented on issue #18660:
URL: https://github.com/apache/doris/issues/18660#issuecomment-1558524327
concat 函数在启动FE时注册。VARCHAR 类型len =-1 ,什么会情况下会导致修改 len的值?
```java
private void registerFEFunction(ImmutableMultimap.Builder<String,
FEFunctionInvoker> mapBuilder,
Method method, FEFunction annotation) {
if (annotation != null) {
String name = annotation.name();
System.out.println(PrimitiveType.valueOf(annotation.returnType()));
Type returnType =
Type.fromPrimitiveType(PrimitiveType.valueOf(annotation.returnType()));
List<Type> argTypes = new ArrayList<>();
for (String type : annotation.argTypes()) {
argTypes.add(ScalarType.createType(type));
}
FEFunctionSignature signature = new FEFunctionSignature(name,
argTypes.toArray(new Type[argTypes.size()]), returnType);
mapBuilder.put(name, new FEFunctionInvoker(method, signature));
}
}
```
--
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]