CookingBoy commented on issue #18660: URL: https://github.com/apache/doris/issues/18660#issuecomment-1825304268
> 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)); > } > } > ``` > > 猜测,metabase连接doris后一些初始化脚本,导致doris 的concat 函数的 FEFunctionInvoker中 VARCHAR参数变成了 100. > > 什么情况下才会修改这个信息呢? 请问您解决这个问题了么 -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org