jinchengchenghh commented on PR #6575: URL: https://github.com/apache/incubator-gluten/pull/6575#issuecomment-2249129859
This exception because for function `slice`, it register `((array(T),bigint,bigint) -> array(T))`, but not `ARRAY<VARCHAR>, INTEGER, INTEGER`, only the second and third arguments type are different. There is two solutions 1. move the slice from gluten expressionMap to only CH backend https://github.com/apache/incubator-gluten/blob/main/gluten-core/src/main/scala/org/apache/gluten/expression/ExpressionMappings.scala#L221 2. Implement the function with `ARRAY<VARCHAR>, INTEGER, INTEGER`. https://github.com/facebookincubator/velox/blob/main/velox/functions/prestosql/Slice.cpp#L210 I would prefer the second approach, datatype change is very easy to implement -- 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]
