-
Notifications
You must be signed in to change notification settings - Fork 217
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
Problem with commas: from to DKVP to CSV #266
Comments
A way to solve is
It gives me
|
This is not a stupid question at all!! DKVP doesn't have a way to handle delimiters within data. One option is using a different delimiter, e.g.
The other thing is that DKVP should be extended to handle double-quoting, like RFC-compliant CSV already does. |
Hi @johnkerl in some way it's like - using LibreOffice Calc - you opened a CSV file, than saved it in Calc native format (ods), and then saved it again in csv. And without making any changes, and without any alert, your start file is different from the end one. I think that extend DKVP could be important. You don't know how much I regret not knowing how to help you coding. Meanwhile mlr could produce an alert everytime there is a conversion from DKVP to CSV and vice versa. Thank you |
This will be addressed by the Go port. |
In case it's helpful, handling delimiters inside fields is exactly what csvquote does. Feel free to reuse that code in future versions of miller. |
Thanks @dbro !! :D |
I have tested today. First running
And I have had But when I run the inverse
I have a wrong output
I have used the latest go binary, but it's probably not implemented yet. Thank you |
@aborruso thanks for testing! You're right, the DKVP reader in the Go port is still quotes-unaware as the C one is -- it doesn't yet have smart quote-handling implemented yet. |
Hi,
this is a very stupid and basic question, but I'm just starting now to use DPKV.
If I run
echo "name=Andrea,WhatIlike=mlr,john" |mlr --ocsv cat
I haveHow is it possible to have
Moreover if I start from CSV, then convert it to DKPV, then to CSV again, the last CSV is not equal to the source one. If I start from
and run
mlr --icsv cat input.txt | mlr --ocsv cat
I have
Thank you
The text was updated successfully, but these errors were encountered: