zeroshade opened a new pull request, #1505:
URL: https://github.com/apache/arrow-go/pull/1505

   ### Rationale for this change
   
   The CSV writer formats a list holding one empty string as `{}`, because 
`encoding/csv` writes a record with a single empty field as an empty line. The 
reader then parses `{}` as an empty list, so `[""]` round-trips to `[]`.
   
   ### What changes are included in this PR?
   
   The list writer emits `{""}` for a list whose only element is an empty 
string. Empty lists still write `{}`. Existing readers already parse `{""}` as 
a one-element list.
   
   ### Are these changes tested?
   
   Yes.
   
   ### Are there any user-facing changes?
   
   CSV output changes for lists containing exactly one empty string: `{""}` 
instead of `{}`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to