-
Notifications
You must be signed in to change notification settings - Fork 839
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
Split out arrow-ord (#2594) #3299
Conversation
- arrow-ord/** | ||
- arrow-schema/** | ||
- arrow-select/** | ||
- arrow-string/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to add this in #3295
bbb07b7
to
e844da8
Compare
@@ -36,7 +36,6 @@ on: | |||
- arrow-ipc/** | |||
- arrow-csv/** | |||
- arrow-json/** | |||
- arrow-string/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parquet doesn't actually depend on any of these kernels, and so this can be removed
db961ea
to
540af48
Compare
@@ -35,7 +35,6 @@ on: | |||
- arrow-ipc/** | |||
- arrow-schema/** | |||
- arrow-select/** | |||
- arrow-string/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
arrow-flight doesn't depend on this crate and so this can be removed
@@ -3804,44 +3860,6 @@ mod tests { | |||
gt_eq_utf8_scalar, | |||
vec![false, false, true, true] | |||
); | |||
test_flag_utf8!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests are moved to arrow-string
@@ -3881,8 +3899,7 @@ mod tests { | |||
); | |||
assert_eq!(eq_dyn_scalar(&array, 8).unwrap(), expected); | |||
|
|||
let array: ArrayRef = Arc::new(array); | |||
let array = crate::compute::cast(&array, &DataType::Float64).unwrap(); | |||
let array = array.unary::<_, Float64Type>(|x| x as f64); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes me happy that it is now really easy to define your own kernels. This avoids needing a dev dependency on arrow-cast
@@ -174,8 +180,8 @@ jobs: | |||
run: cargo clippy -p arrow-data --all-targets --all-features -- -D warnings | |||
- name: Clippy arrow-schema with all features | |||
run: cargo clippy -p arrow-schema --all-targets --all-features -- -D warnings | |||
- name: Clippy arrow-array with all features | |||
run: cargo clippy -p arrow-array --all-targets --all-features -- -D warnings | |||
- name: Clippy arrow-array with all features except SIMD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created rust-lang/cargo#11467 to track making this less error prone
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me -- again I think it is worth being overly conservative and running benchmarks again to ensure we didn't cause any performance regressions accidentally
[package] | ||
name = "arrow-ord" | ||
version = "28.0.0" | ||
description = "Ordering kernels for arrow arrays" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would "comparison kernels" be a more accurate description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are sort kernels in there, so it is kind of kernels that relate to the ordering of elements? Maybe? I don't really feel strongly, was just trying to justify why it is arrow-ord and not arrow-cmp or something 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine 👍
Benchmarks just show noise
|
Sort kernels also show just noise
|
Which issue does this PR close?
Part of #2594
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?