Skip to content
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

Exporting line breaks interrupts CSV formatting #8389

Open
max-hoffman opened this issue Sep 25, 2024 · 0 comments
Open

Exporting line breaks interrupts CSV formatting #8389

max-hoffman opened this issue Sep 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@max-hoffman
Copy link
Contributor

Exporting invalid CSV makes it hard to roundtrip import/exports.

Small repro:

dolt init
dolt sql <<EOF
create table ab (a int primary key, b varbinary(255));
insert into ab values (1, 'line\nbreak'), (2,'sorry\ncsv');
EOF
dolt table export ab ab.csv
$ cat ab.csv
a,b
1,"line
break"
2,"sorry
csv"
@max-hoffman max-hoffman added the bug Something isn't working label Sep 25, 2024
@max-hoffman max-hoffman changed the title Exporting line breaks breaks CSV formatting Exporting line breaks interrupts CSV formatting Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant