johanpel opened a new pull request #11836:
URL: https://github.com/apache/arrow/pull/11836


   This adds the option to configure the string that is rendered in the CSV 
output for null values.
   If this null string has any quotes, they are escaped. I decided not to deal 
with the fact that the user can provide a string that cause rendered values to 
become ambiguous. E.g. when the user supplies `42` and an integer column has a 
null, it will render as `42` making it indistinguishable from the actual value 
of 42.
   The reason is that if we were to quote a valid value or the null value, this 
may annoy downstream applications that perform e.g. type inference for said 
column. But the most major drawback is that we'd need to check every valid 
value for equality to the configured null value, which I think may be a price 
too costly to pay for users making awkward choices for their null value.


-- 
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