andygrove commented on issue #2475: URL: https://github.com/apache/datafusion-comet/issues/2475#issuecomment-4844724414
This was resolved by #2630, which added a fallback to Spark for `lpad`/`rpad` when the `pad` argument is non-literal. In this report, `rpad(c27, 1, c0)` failed because the pad argument `c0` is a column (not a scalar), and the native `read_side_padding` function had no support for a non-scalar pad. `CometStringRPad.getSupportLevel` now returns `Unsupported` when `pad` is not a `Literal`, so the expression falls back to Spark instead of being executed natively. Closing as resolved. Please reopen if you can still reproduce on a recent build. -- 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]
