alamb opened a new issue, #3268:
URL: https://github.com/apache/arrow-rs/issues/3268

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   I am working on sqllogictest based testing in DataFusion - 
https://github.com/apache/arrow-datafusion/issues/4460
   
   We are using the Arrow CSV writer 👍 
   
   However, in order to implement the spec correctly, we need to display NULLs 
as "NULL"
   
   Currently the CSV writer writes out NULLs as empty strings `""`
   
   I would like a way to control what string was used.
   
   
   
   **Describe the solution you'd like**
   Extend 
https://docs.rs/arrow-csv/28.0.0/arrow_csv/writer/struct.WriterBuilder.html
   
   ```rust
           let builder = WriterBuilder::new()
             .has_headers(false)
             .with_delimiter(b' ')
             // new setting to control NULL output
             .with_null(b'NULL');
   ```
   
   So instead of  wrting out the values `A, null, B' as
   ```text
   A
   
   B
   ```
   
   As is done today this would be written like
   
   ```text
   A
   NULL
   B
   ```
   
   
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features 
you've considered.
   -->
   
   **Additional context**
   https://github.com/apache/arrow-datafusion/issues/4500


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