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

Quoted comma throwing off parser? #1242

Open
yfarjoun opened this issue Nov 23, 2023 · 1 comment
Open

Quoted comma throwing off parser? #1242

yfarjoun opened this issue Nov 23, 2023 · 1 comment

Comments

@yfarjoun
Copy link

Is there no support for quoted strings?

I have a quoted string that includes a comma in it, and it seems to throw off the parser as it reads the comma as a column separator. Am I doing something wrong or is there currently no way of reading a table that has (quoted) commas in it?

Thanks!

@ccleva
Copy link
Contributor

ccleva commented Dec 15, 2023

Hi @yfarjoun. There is support for quoted strings by default. Reading this csv file

col1,col2,col3
1,"test",test
2,"test, test",test2

with default options produces

 col1  |     col2     |  col3   |
---------------------------------
    1  |        test  |   test  |
    2  |  test, test  |  test2  |

If you are using a different quote character you can configure it in the CsvReadOptions (through the Builder)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants