lyy-pineapple commented on PR #6575: URL: https://github.com/apache/incubator-gluten/pull/6575#issuecomment-2249213345
> 这个异常是因为对于函数来说`slice`,它注册了`((array(T),bigint,bigint) -> array(T))`,但没有`ARRAY<VARCHAR>, INTEGER, INTEGER`,只有第二个和第三个参数类型不同。 有两种解决方案 > > 1. 将切片从 gluten expressionMap 移动到仅 CH 后端https://github.com/apache/incubator-gluten/blob/main/gluten-core/src/main/scala/org/apache/gluten/expression/ExpressionMappings.scala#L221 > 2. 使用 实现该功能`ARRAY<VARCHAR>, INTEGER, INTEGER`。https [://github.com/facebookincubator/velox/blob/main/velox/functions/prestosql/Slice.cpp#L210](https://github.com/facebookincubator/velox/blob/main/velox/functions/prestosql/Slice.cpp#L210) > > 我更喜欢第二种方法,数据类型的改变非常容易实现 This is not just an issue with slice; similar problems can occur with other array functions when there is a mismatch. -- 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]
