[VL] Add Spark randstr function mapping for Velox backend#11607
Merged
Conversation
|
Run Gluten Clickhouse CI on x86 |
4c1a925 to
047892d
Compare
|
Run Gluten Clickhouse CI on x86 |
047892d to
20f412c
Compare
|
Run Gluten Clickhouse CI on x86 |
20f412c to
6416265
Compare
|
Run Gluten Clickhouse CI on x86 |
6416265 to
bd97113
Compare
|
Run Gluten Clickhouse CI on x86 |
bd97113 to
b41e015
Compare
|
Run Gluten Clickhouse CI on x86 |
zhli1142015
approved these changes
Feb 27, 2026
Add expression mapping for Spark's randstr function (Spark 4.0+) to enable offloading to Velox native execution. Changes: - Add RANDSTR constant to ExpressionNames.scala - Add Sig[RandStr] to Spark40Shims and Spark41Shims scalar expression mappings The Velox implementation was merged in facebookincubator/velox#16014. randstr(length, seed) generates a random string of specified length using characters from 0-9, a-z, A-Z.
b41e015 to
20d4e1f
Compare
|
Run Gluten Clickhouse CI on x86 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Add expression mapping for Spark's
randstrfunction (Spark 4.0+) to enable offloading to Velox native execution engine.The
randstr(length, seed)function generates a random string of specified length using characters from 0-9, a-z, A-Z. The Velox implementation was merged in facebookincubator/velox#16014.Changes:
RANDSTRconstant toExpressionNames.scalaSig[RandStr](ExpressionNames.RANDSTR)toSpark40ShimsandSpark41Shimsscalar expression mappingsHow was this patch tested?
Existing Gluten UT framework. The Velox side has comprehensive tests in
RandStrTest.cpp.