You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "cfmcgrady (via GitHub)" <gi...@apache.org> on 2025/09/29 03:21:40 UTC
[I] Support `reverse` function with `ArrayType` input [datafusion-comet]
cfmcgrady opened a new issue, #2478:
URL: https://github.com/apache/datafusion-comet/issues/2478
### What is the problem the feature request solves?
As of https://github.com/apache/datafusion-comet/pull/2477, the `reverse` function with an `ArrayType` input falls back to vanilla Spark execution.
Add support for `reverse` to work natively with `ArrayType` inputs.
```
sql("set spark.sql.optimizer.excludedRules=org.apache.spark.sql.catalyst.optimizer.ConstantFolding")
sql("SELECT reverse(array(2, 1, 4, 3))").show
```
### Describe the potential solution
_No response_
### Additional context
_No response_
--
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: github-unsubscribe@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Support `reverse` function with `ArrayType` input [datafusion-comet]
Posted by "cfmcgrady (via GitHub)" <gi...@apache.org>.
cfmcgrady commented on issue #2478:
URL: https://github.com/apache/datafusion-comet/issues/2478#issuecomment-3345240223
> FYI: https://datafusion.apache.org/user-guide/sql/scalar_functions.html#array-reverse
@wForget Thanks for pointing this out. I’ll submit a new PR mapping the Spark `reverse` function for arrays to DataFusion’s `array_reverse`.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Support `reverse` function with `ArrayType` input [datafusion-comet]
Posted by "wForget (via GitHub)" <gi...@apache.org>.
wForget commented on issue #2478:
URL: https://github.com/apache/datafusion-comet/issues/2478#issuecomment-3345087516
FYI: https://datafusion.apache.org/user-guide/sql/scalar_functions.html#array-reverse
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Support `reverse` function with `ArrayType` input [datafusion-comet]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead closed issue #2478: Support `reverse` function with `ArrayType` input
URL: https://github.com/apache/datafusion-comet/issues/2478
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org