Skip to content

[SPARK-3814][SQL] Bitwise & does not work in Hive - #2789

Closed
ravipesala wants to merge 3 commits into
apache:masterfrom
ravipesala:SPARK-3814-NEW2
Closed

ravipesala wants to merge 3 commits into
apache:masterfrom
ravipesala:SPARK-3814-NEW2

Conversation

@ravipesala

Copy link
Copy Markdown
Contributor

Currently there is no support of Bitwise & , | in Spark HiveQl and Spark SQL as well. So this PR support the same.
I am closing #2736 as it has conflicts to merge. And I handled all review comments in that PR.

Author : ravipesala ravindra.pesala@huawei.com

@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@ravipesala

Copy link
Copy Markdown
Contributor Author

@marmbrus Please review this PR, I handled review comments of PR #2736 to merge conflicts I have created new PR.

@ravipesala

Copy link
Copy Markdown
Contributor Author

Added support for Bitwise AND(&), OR(|) ,XOR(^), NOT(~) in this PR only. Please review it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why have a default implementation here? That is just converting something that could be caught at compile time to a runtime exception.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh I see because of the other binary expressions that also override eval. We should at least leave a note by changing the Exception to "BinaryExpressions must either override eval or evalInternal".

@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@liancheng

Copy link
Copy Markdown
Contributor

Would you please rebase?

@ravipesala

Copy link
Copy Markdown
Contributor Author

Closed this PR as it has merge conflicts and created new PR #2926 and handled comments here

@ravipesala ravipesala closed this Oct 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants