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

vDataFrame.to_csv wrong escape implementation #675

Closed
xpegenaute opened this issue Jul 21, 2023 · 1 comment · Fixed by #805
Closed

vDataFrame.to_csv wrong escape implementation #675

xpegenaute opened this issue Jul 21, 2023 · 1 comment · Fixed by #805
Assignees
Labels
Bug Something isn't working. Core - vDataFrame Anything related to the vDataFrame object.

Comments

@xpegenaute
Copy link

Hi All,

I am trying to generate a CSV file but apparently it is does not escape properly que quote character. Here is an example:

vdf = vp.vDataFrame(sql='''SELECT '0' AS ID, 'Comma ", test"' AS DESCR''')
vdf.to_csv('comma_test.csv')

It produces:

ID","DESCR"
"0","Comma ", test""

While it should be :

ID,DESCR
0,"Comma "", test"""

I am using:

vertica-python==1.1.1
verticapy==0.12.0
@oualib oualib added Bug Something isn't working. Core - vDataFrame Anything related to the vDataFrame object. labels Aug 1, 2023
@oualib oualib self-assigned this Oct 31, 2023
@oualib oualib linked a pull request Nov 1, 2023 that will close this issue
@oualib
Copy link
Member

oualib commented Nov 1, 2023

Thank you, the bug will be corrected in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working. Core - vDataFrame Anything related to the vDataFrame object.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants