-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
chore: Remove apply_generic, use unary_elementwise #17902
Conversation
b2eb42a
to
35ba5fc
Compare
if ca.null_count == 0 { | ||
let iter = ca | ||
.downcast_iter() | ||
.map(|arr| arr.values_iter().map(|x| op(Some(x))).collect_arr()); | ||
ChunkedArray::from_chunk_iter(ca.name(), iter) |
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.
porting this over from apply_generic
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17902 +/- ##
==========================================
- Coverage 80.35% 80.33% -0.02%
==========================================
Files 1492 1492
Lines 196330 196301 -29
Branches 2813 2813
==========================================
- Hits 157764 157705 -59
- Misses 38045 38075 +30
Partials 521 521 ☔ View full report in Codecov by Sentry. |
.downcast_iter() | ||
.map(|arr| arr.iter().map(&mut op).collect_arr()); | ||
ChunkedArray::from_chunk_iter(ca.name(), iter) | ||
if ca.null_count == 0 { |
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.
can this use has_nulls
. We want to optimize this check later.
35ba5fc
to
2a6d253
Compare
This is what I was talking about yesterday
It seems to me that
apply_generic
andunary_elementwise
overlap? There's an extra little fastpath in the first one for when there's no nulls (which I ported over), but other than that, is it necessary to have both?