GitHub user mn-mikke opened a pull request:
https://github.com/apache/spark/pull/21034
[SPARK-23926][SQL] Extending reverse function to support ArrayType arguments
## What changes were proposed in this pull request?
This PR extends reverse functions to be able to operate over array columns
and covers:
- Introduction of Reverse expression that represents logic for reversing
arrays and also strings
- Removal of StringReverse expression
- A wrapper for PySpark
## How was this patch tested?
New tests added into:
- CollectionExpressionsSuite
- DataFrameFunctionsSuite
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/AbsaOSS/spark
feature/array-api-reverse-to-master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21034.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #21034
----
commit 3a76d87492a8d03a29aeee877f5564071b0a68a8
Author: mn-mikke <mrkaha12346github>
Date: 2018-04-09T14:12:16Z
[SPARK-23926][SQL] Extending reverse function to support ArrayType
arguments.
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]