Skip to content

[AURON #1538] Implement native function of reverse.#1540

Merged
richox merged 1 commit intoapache:masterfrom
slfan1989:auron-1538
Oct 31, 2025
Merged

[AURON #1538] Implement native function of reverse.#1540
richox merged 1 commit intoapache:masterfrom
slfan1989:auron-1538

Conversation

@slfan1989
Copy link
Contributor

@slfan1989 slfan1989 commented Oct 30, 2025

Which issue does this PR close?

Closes #1538.

Rationale for this change

The rationale behind this change is to implement a native reverse function for better compatibility with Spark SQL and to reduce dependency on UDFs. This function supports string inputs and ensures consistent behavior with Spark’s built-in functions.

What changes are included in this PR?

This PR introduces a new native scalar function reverse(expr), which supports Utf8 string types, as well as mixed scalar and column vector inputs. It also ensures that the Null semantics align with Spark’s behavior.

Are there any user-facing changes?

Yes, users will now have access to the native reverse function for strings

How was this patch tested?

CI & Junit Test.

Signed-off-by: slfan1989 <slfan1989@apache.org>
@github-actions github-actions bot added the spark label Oct 30, 2025
@slfan1989 slfan1989 changed the title [AURON #1538] Implement native function of reverse. [AURON #1538] Implement native function of reverse. Oct 30, 2025
@slfan1989 slfan1989 marked this pull request as ready for review October 31, 2025 00:09
@richox richox merged commit 1fa0489 into apache:master Oct 31, 2025
98 checks passed
@slfan1989
Copy link
Contributor Author

@richox Thank you very much for reviewing the code!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement native function of reverse

2 participants