Spark make_valid_utf8 function implementation#20633
Merged
Jefffrey merged 20 commits intoapache:mainfrom Apr 16, 2026
Merged
Conversation
added 4 commits
March 2, 2026 20:33
# Conflicts: # datafusion/spark/src/function/string/mod.rs
Contributor
Author
|
@Jefffrey Could you please do a review when you have time? |
Jefffrey
reviewed
Mar 26, 2026
Contributor
Jefffrey
left a comment
There was a problem hiding this comment.
Implementation looks good, but we need more test cases; as it is none of the tests actually test invalid utf8 path
added 3 commits
April 14, 2026 16:37
Jefffrey
approved these changes
Apr 15, 2026
Contributor
|
Thanks @kazantsev-maksim |
Contributor
Author
|
Thanks for the review @Jefffrey. |
Rich-T-kid
pushed a commit
to Rich-T-kid/datafusion
that referenced
this pull request
Apr 21, 2026
## Which issue does this PR close? N/A ## Rationale for this change Add new spark function: https://spark.apache.org/docs/latest/api/sql/index.html#make_valid_utf8 ## What changes are included in this PR? - Implementation - SLT tests ## Are these changes tested? Yes, tests added as part of this PR. ## Are there any user-facing changes? No, these are new function. --------- Co-authored-by: Kazantsev Maksim <mn.kazantsev@gmail.com>
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.
Which issue does this PR close?
N/A
Rationale for this change
Add new spark function: https://spark.apache.org/docs/latest/api/sql/index.html#make_valid_utf8
What changes are included in this PR?
Are these changes tested?
Yes, tests added as part of this PR.
Are there any user-facing changes?
No, these are new function.