Skip to content

fix(async): parsing query response with two-bytes UTF-8 character #518

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

Merged
merged 2 commits into from
Oct 14, 2022

Conversation

bednar
Copy link
Contributor

@bednar bednar commented Oct 13, 2022

Closes #517

Proposed Changes

This PR fixes parsing query response for the async client if the CSV looks like:

#group,false,false,false,false,true,true,true
#datatype,string,long,dateTime:RFC3339,string,string,string,string
#default,_result,,,,,,
,result,table,_time,_value,_field,_measurement,type
,,0,2022-10-13T12:28:31.181418542Z,ÂÂÂ,value,async,error
,,0,2022-10-13T12:28:31.181418542Z,ÂÂÂ,value,async,error
,,0,2022-10-13T12:28:31.181418542Z,ÂÂÂ,value,async,error
,,0,2022-10-13T12:28:31.181418542Z,ÂÂÂ,value,async,error
,,0,2022-10-13T12:28:31.181418542Z,ÂÂÂ,value,async,error
,,0,2022-10-13T12:28:31.181418542Z,ÂÂÂ,value,async,error
,,0,2022-10-13T12:28:31.181418542Z,ÂÂÂ,value,async,error
...

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • A test has been added if appropriate
  • pytest tests completes successfully
  • Commit messages are conventional
  • Sign CLA (if not already signed)

@bednar bednar merged commit 75b7df1 into master Oct 14, 2022
@bednar bednar deleted the async-utf8-two-bytes-character branch October 14, 2022 07:15
@bednar bednar added this to the 1.34.0 milestone Oct 14, 2022
@bednar bednar self-assigned this Oct 14, 2022
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

Successfully merging this pull request may close these issues.

Unicode Decode Error when parsing DataFrame results using query_data_frame method
2 participants