Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CALCITE-5736] Add ARRAY_REVERSE function (enabled in Spark library) #3235

Closed
wants to merge 1 commit into from

Conversation

liuyongvs
Copy link
Contributor

@liuyongvs liuyongvs commented May 31, 2023

spark doesn't support the array_reverse.

it supports reverse, which not only can reverse string, but also can reverse array
so close this PR

reverse(array) - Returns a reversed string or an array with reverse order of elements.

Examples:

> SELECT reverse('Spark SQL');
 LQS krapS
> SELECT reverse(array(2, 1, 4, 3));
 [3,4,1,2]

@liuyongvs liuyongvs closed this May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant