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-39282][SQL] Replace If-Else branch with bitwise operators in roundNumberOfBytesToNearestWord #36659

Closed

Conversation

zhixingheyi-tian
Copy link
Contributor

@zhixingheyi-tian zhixingheyi-tian commented May 25, 2022

What changes were proposed in this pull request?

Use bitwise operators to avoid If-Else branch and improve computation performance.

How was this patch tested?

Existed UTs.

@github-actions github-actions bot added the SQL label May 25, 2022
@zhixingheyi-tian
Copy link
Contributor Author

Hi @cloud-fan @ueshin , Please give a review, thanks!

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

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

Seems fine. You can even inline remainder but may not make a difference

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@zhixingheyi-tian
Copy link
Contributor Author

Thanks @cloud-fan @srowen , can it be merged?

@cloud-fan
Copy link
Contributor

The GA job didn't pass, can you check?

@zhixingheyi-tian
Copy link
Contributor Author

The GA job didn't pass, can you check?

Hi @cloud-fan @srowen
All Three GA jobs passed. Thanks

@srowen
Copy link
Member

srowen commented May 28, 2022

I think the appveyor error is unrelated. I'll merge shortly

@srowen srowen closed this in b12c127 May 28, 2022
@srowen
Copy link
Member

srowen commented May 28, 2022

MErged to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants