-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
ARROW-11313: [Rust] Fixed size_hint #9258
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9258 +/- ##
=======================================
Coverage 81.61% 81.61%
=======================================
Files 215 215
Lines 51867 51891 +24
=======================================
+ Hits 42329 42353 +24
Misses 9538 9538
Continue to review full report at Codecov.
|
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 looks consistent with https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.size_hint to me. 👍 @jorgecarleitao
I also found another implementation of size_hint
but that seems to be doing the right thing: https://github.com/alamb/arrow/blob/master/rust/arrow/src/util/bit_chunk_iterator.rs#L156
I merged this branch locally and ran the tests and everything looked good 👍 |
`size_hint` should return the remaining items, not the total number of items. Closes #9258 from jorgecarleitao/fix_size_hint Authored-by: Jorge C. Leitao <jorgecarleitao@gmail.com> Signed-off-by: Andrew Lamb <andrew@nerdnetworks.org>
`size_hint` should return the remaining items, not the total number of items. Closes apache#9258 from jorgecarleitao/fix_size_hint Authored-by: Jorge C. Leitao <jorgecarleitao@gmail.com> Signed-off-by: Andrew Lamb <andrew@nerdnetworks.org>
`size_hint` should return the remaining items, not the total number of items. Closes apache#9258 from jorgecarleitao/fix_size_hint Authored-by: Jorge C. Leitao <jorgecarleitao@gmail.com> Signed-off-by: Andrew Lamb <andrew@nerdnetworks.org>
size_hint
should return the remaining items, not the total number of items.