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

Add FixedSizeBinary support to binary_op_dyn_scalar #6891

Merged
merged 1 commit into from
Jul 9, 2023

Conversation

maxburke
Copy link
Contributor

@maxburke maxburke commented Jul 8, 2023

Closes #6890

@github-actions github-actions bot added sql SQL Planner logical-expr Logical plan and expressions physical-expr Physical Expressions optimizer Optimizer rules core Core DataFusion crate substrait labels Jul 8, 2023
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks @maxburke -- the code change looks good to me, but I think there are unrelated changes in this PR for some reason. Once that is resolved I think this PR is good to go.

I also think this change should be tested so that we don't break the feature in the future. I tried to add some basic coverage here: #6895 so I think this PR can be merged once the extraneous version stuff is taken care of

Cargo.toml Outdated
@@ -35,7 +35,7 @@ members = [
]

[workspace.package]
version = "26.0.0"
version = "27.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

It is strange the diff shows these changes as they seem to have been made on master 🤔

@@ -1005,6 +1005,7 @@ macro_rules! binary_array_op_dyn_scalar {
ScalarValue::LargeUtf8(v) => compute_utf8_op_dyn_scalar!($LEFT, v, $OP, $OP_TYPE),
ScalarValue::Binary(v) => compute_binary_op_dyn_scalar!($LEFT, v, $OP, $OP_TYPE),
ScalarValue::LargeBinary(v) => compute_binary_op_dyn_scalar!($LEFT, v, $OP, $OP_TYPE),
ScalarValue::FixedSizeBinary(_, v) => compute_binary_op_dyn_scalar!($LEFT, v, $OP, $OP_TYPE),
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is the only actual code change

I wrote some tests for it here: #6895

@github-actions github-actions bot removed sql SQL Planner logical-expr Logical plan and expressions optimizer Optimizer rules core Core DataFusion crate substrait labels Jul 9, 2023
@maxburke
Copy link
Contributor Author

maxburke commented Jul 9, 2023

Thanks @maxburke -- the code change looks good to me, but I think there are unrelated changes in this PR for some reason. Once that is resolved I think this PR is good to go.

I also think this change should be tested so that we don't break the feature in the future. I tried to add some basic coverage here: #6895 so I think this PR can be merged once the extraneous version stuff is taken care of

Weird! Alright, I rebased the change on main and the only relevant change is now included.

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks @maxburke

@alamb alamb merged commit 1eb6656 into apache:main Jul 9, 2023
@alamb
Copy link
Contributor

alamb commented Jul 9, 2023

FYI this PR may not be enough to compared fixed size binary -- see #6895 for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physical-expr Physical Expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FixedSizeBinary support for binary_array_op_dyn_scalar
2 participants