-
Notifications
You must be signed in to change notification settings - Fork 32
Not wroking correctly on file with too many lines #13
Comments
I also have this issue, is there a fix planned soon? |
@p-ranav perhaps it makes sense to make a single threaded/simpler version of the reader implementation and opt-in to the threaded with flags? Runtime or compile time. This issue kind of discouraged me. |
Just fooling around with these changes, it looks like the test passes with std or unordered_map on my computer - but going back to unordered_flat_map causes it to have blank records again so I'm of the opinion's there's race conditions going on
I noticed the try_dequeue's return bool but this is never checked. I'm also not sure why in the next_row pathways, and somehow we can have a ready that completes but next_row() return's an empty record from the concurrent queue. |
This code also results in the wrong answer.
If i write another row then the answer is correct (2). Edit: I see that the issue is Closed but still exists. At least in a version provided by vcpkg. |
Hello, I'm working on a second implementation of this library: https://github.com/p-ranav/csv2. The reader is ready for use. Check it out. Hopefully it works better. I'm planning to archive this repo in favor of csv2. Sorry again for all the issues you've faced with this library. |
Environment
Issue
I test the program on a CSV file 20k_rows_data.csv.txt with 20K lines and the program does not work correctly. (I change the filename with
.txt
, because GitHub issue does not support uploading.csv
file.)Part of the output is like (copy from my console):
Note that the outputs are not the same each time I run it.
The text was updated successfully, but these errors were encountered: