Conversation
| }), | ||
| Some(3), | ||
| vec![None, None, Some(2)], | ||
| vec![None, Some(2), Some(0)], |
There was a problem hiding this comment.
I think the checked in answers are incorrect -- namely the first three items in the input are None, 0 and 2 and yet the output has two nulls in it.
There was a problem hiding this comment.
Is this passing? This looks wrong to me, the unoptimized order (ie /wo limit) would look like None, None, 2, 0, 0, -1, applying the limit: None, None, 2.
| if let Some(limit) = limit { | ||
| len = limit.min(len); | ||
| // count how many nulls are present in the limit | ||
| nulls_len = nulls.iter().filter(|&idx| *idx as usize <= limit).count(); |
There was a problem hiding this comment.
Everything else in this function doesn't need to dig into the actual index values so something smells here to me. I thought the limit is applied to the sorted result so I don't know that comparing the limit to the indices is correct here.
| }), | ||
| Some(3), | ||
| vec![None, None, Some(2)], | ||
| vec![None, Some(2), Some(0)], |
There was a problem hiding this comment.
Is this passing? This looks wrong to me, the unoptimized order (ie /wo limit) would look like None, None, 2, 0, 0, -1, applying the limit: None, None, 2.
|
I misunderstood the expected behavior. Sorry about that |
* Add ported Rust release verification script * Minor simplifications. (#1) Co-authored-by: Jorge Leitao <jorgecarleitao@gmail.com>
* add parquet-fromcsv (#1) add command line tool for convert csv to parquet. * add `text` for non-rust documentation text * Update parquet/src/bin/parquet-fromcsv.rs Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com> * Update parquet/src/bin/parquet-fromcsv.rs Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com> * Update parquet/src/bin/parquet-fromcsv.rs Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com> * Update parquet/src/bin/parquet-fromcsv.rs Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com> * automate update help text * remove anyhow * add rat_exclude_files * update test_command_help * fix clippy warnings * add writer-version, max-row-group-size arg * fix cargo fmt lint Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com>
Proposed modification for apache#236