Open sjanel opened 1 day ago
Actively working on this issue here: #1446
I think the string parsing has been fixed. It also supports escaped quotes per the CSV specification, which were needed to parse this document. However, there is a bug where it parses the WithdrawalDate into the MinorUnit. I have to work on some other stuff at the moment. If you want to try to fix this from the csv_currency
branch, that would be great! Otherwise, I'll get back to this when I'm able.
I think the string parsing has been fixed. It also supports escaped quotes per the CSV specification, which were needed to parse this document. However, there is a bug where it parses the WithdrawalDate into the MinorUnit. I have to work on some other stuff at the moment. If you want to try to fix this from the
csv_concurrency
branch, that would be great! Otherwise, I'll get back to this when I'm able.
I think I found the bug, and fixed it in this commit. Feel free to take it into your branch. It's because we are skipping the trailing ',' in both the from<CSV for string_t and in the main loop of line 616, whereas for other type parsing we don't skip the commas, so I decided to just remove it from the string_t and it seems to work.
However, I did not see any test for rowwise parsing and I cannot make my commented test pass (see csv_test.cpp:606-607
). Am I calling it incorrectly ?
Thanks, I got your fix on the branch so that it parses column wise correctly. I'll look at your commented test now.
I updated the rowwise test on the csv_currency
branch. The first issue was that it was still reading in a column wise CSV file. Now it write out the data in rowwise format and then tries to read that back in. The outstanding issue is that our string writing for CSV does not escape quotes.
I'm going to merge the current fixes for column wise support. But, I'm going to keep this issue alive until rowwise support and escaped writing has been added. I just want to get these changes merged as a first step.
I could add you as a contributor to Glaze if you'd like to make branches directly in Glaze for these CSV fixes.
Hi !
I wanted to use glaze to parse the currencies from this CSV with this structure:
However, the parser interprets
,
(and[
]
) if they are inside brackets in a value. For instance, these lines fail:I think that this behavior could be expected if
.raw_string
is true, but it should work if we set.raw_string
tofalse
.WDYT ?
If I have the time, I will try to make a PR.