How to handle multi-line values in CSVs #2729
-
Describe the bug To Reproduce Create a file
Run and get this error:
When I run
No idea what that error is Expected behavior Screenshots/Backtrace/Sample Data Desktop (please complete the following information):
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I think there are two issues here.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the detailed report @alexkreidler . To handle embedded XML values like this - you need to escape them by using double quotes around the entire field and escape any double quotes within the field by doubling them:
Doing so allows the other commands in your example to work.
BTW, I'll convert this issue to a Discussion so other folks with a similar problem can find it. |
Beta Was this translation helpful? Give feedback.
I think there are two issues here.
""
rather than\"
. Starting your pipeline withqsv input --escape '\' simple.csv
fixes all of your problematic examples.SIGSEGV
and my "program never terminates" points to some state withinqsv
that needs attention.