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

[SPARK-40924][SQL][3.3] Fix for Unhex when input has odd number of symbols #38416

Closed
wants to merge 1 commit into from

Conversation

vitaliili-db
Copy link
Contributor

What changes were proposed in this pull request?

Fix for a bug in Unhex function when there is an odd number of symbols in the input string.
This is backport of #38402

Why are the changes needed?

Unhex function and other functions depending on it (e.g. ToBinary) produce incorrect output.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit tests

@vitaliili-db
Copy link
Contributor Author

@MaxGekk backported, please take a look

@github-actions github-actions bot added the SQL label Oct 27, 2022
Copy link
Member

@MaxGekk MaxGekk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting for CI.

@MaxGekk
Copy link
Member

MaxGekk commented Oct 28, 2022

All GAs passed:
Screenshot 2022-10-28 at 07 58 50
Merging to 3.3. Thank you, @vitaliili-db.

MaxGekk pushed a commit that referenced this pull request Oct 28, 2022
…mbols

### What changes were proposed in this pull request?

Fix for a bug in Unhex function when there is an odd number of symbols in the input string.
This is backport of #38402

### Why are the changes needed?

Unhex function and other functions depending on it (e.g. ToBinary) produce incorrect output.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Unit tests

Closes #38416 from vitaliili-db/backport33.

Authored-by: Vitalii Li <vitalii.li@databricks.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
@MaxGekk MaxGekk closed this Oct 28, 2022
facebook-github-bot pushed a commit to facebookincubator/velox that referenced this pull request Mar 11, 2024
Summary:
apache/spark#38416 fixed unhex function when input string has an odd number of characters.

Pull Request resolved: #8993

Reviewed By: Yuhta

Differential Revision: D54748449

Pulled By: mbasmanova

fbshipit-source-id: 281985fdbdd775e347a598c018a6ce9d1b046b62
Joe-Abraham pushed a commit to Joe-Abraham/velox that referenced this pull request Jun 7, 2024
…#8993)

Summary:
apache/spark#38416 fixed unhex function when input string has an odd number of characters.

Pull Request resolved: facebookincubator#8993

Reviewed By: Yuhta

Differential Revision: D54748449

Pulled By: mbasmanova

fbshipit-source-id: 281985fdbdd775e347a598c018a6ce9d1b046b62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants