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
Two lines of input don't work #69
Comments
The contents of the file two.csv was:
|
I can reproduce this issue. It would be helpful to have a Rust program using the |
That means i've to write my first rust program. But ok, its always the first time. I'll try |
So, finally I got it compiled :-) ` fn main() {
} |
@ElBartel Thanks so much! Awesome work. I'll try to take a look at this soon. |
I have the same problem. I'm using fst-bin (not tested with fst lib et perso code). |
Are you sure the first row isn't being skipped because it's being interpreted as a header row and thus is not part of the data? |
Seems you are right. But it appears that there is not consistency between fst-bin map/set and sorted/unsorted set + external sorted => no header considered the problem could be in fst-bin/src/cmd/map.rs ...run_unsorted() ? for comparison : fst-bin/src/cmd/map.rs, run_sorted() set specificaly : ".has_headers(false)" for csv::ReaderBuilder::new() but in "impl Iterator for ConcatCsv" seems there is not a ".has_headers(false)" with csv::Reader::from_reader(rdr). ...?? |
Sorry, but I can't make sense of what you're saying. Please provide a reproducible test case, along with inputs, actual output and expected output. |
No problem, here it is. import csv for setI made a simple "test.csv" file with following content (lines are wrong sorted) :
1. set "external" sortThe sorting is made with /usr/bin/sort unix command, then fst set creation, and query to get all what is imported.
Result (3 lines correctly imported, correctly sorted, the first line in csv is so not a header) :
2. set internal sortThe sorting is made in rust. ( Result (the same as precedent, first line is not a header) :
import csv for mapI modified the "test.csv" to have numbers for map. Same thing, lines in wrong sort order.
3. map "external" sortThe sorting is made with unix command. ( Result (same thing, 3 lines, correctly sorted, first line is not a header) :
4. map internal sortThe sorting is made in rust. ( Result (!!! 2 lines !!! correctly sorted, but seems the first line in csv is used as a header, but why differently than 3 precedent tests ???)
I hope it's more understandable ...? So it's why I supposed the difference can came from "run_sorted()" where there is a ".has_headers(false)" (run_sorted() with ".has_headers(false)") |
The commandline
does work, but the following command:
prints only one single line and the command
produces a graph with three nodes - ok. But only a single final node, a wrong output on label 'a' (1) and no output on label 'b'.
The text was updated successfully, but these errors were encountered: