You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to run the code on simple string and count-occurrences fails with "failed to fill whole buffer" error.
Here are steps to reproduce:
run ./target/debug/dedup_dataset make --data-file dup.txt, data file dup.txt contains simple string "aaabbb"
then run ./target/debug/dedup_dataset count-occurrences --data-file dup.txt --query-file query.txt, where query.txt contains
"bb"
expectation: Number of times present: 2
reality: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: UnexpectedEof, message: "failed to fill whole buffer" }', src/main.rs:275:31;
"ab"
expectation: Number of times present: 1
reality: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: UnexpectedEof, message: "failed to fill whole buffer" }', src/main.rs:297:31;
"b"
expectation: Number of times present: 2
reality: Number of times present: 1;
May be I'm doing something wrong? Thanks.
The text was updated successfully, but these errors were encountered:
Ah sorry this is a bug with something from the rewrite. I've updated to the new version of the code if you pull -- please let me know if it works correctly.
Hi,
I have tried to run the code on simple string and count-occurrences fails with "failed to fill whole buffer" error.
Here are steps to reproduce:
./target/debug/dedup_dataset make --data-file dup.txt
, data file dup.txt contains simple string "aaabbb"./target/debug/dedup_dataset count-occurrences --data-file dup.txt --query-file query.txt
, where query.txt containsexpectation:
Number of times present: 2
reality:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: UnexpectedEof, message: "failed to fill whole buffer" }', src/main.rs:275:31
;expectation:
Number of times present: 1
reality:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: UnexpectedEof, message: "failed to fill whole buffer" }', src/main.rs:297:31
;expectation:
Number of times present: 2
reality:
Number of times present: 1
;May be I'm doing something wrong? Thanks.
The text was updated successfully, but these errors were encountered: