xanderbailey commented on code in PR #8960:
URL: https://github.com/apache/arrow-rs/pull/8960#discussion_r2612244720
##########
arrow-csv/src/writer.rs:
##########
@@ -157,7 +163,22 @@ impl<W: Write> Writer<W> {
col_idx + 1
))
})?;
- byte_record.push_field(buffer.as_bytes());
+
+ // Apply whitespace trimming if options are enabled and the
column is a string type
+ let field_bytes = if should_trim &&
batch.column(col_idx).data_type() == &DataType::Utf8 {
Review Comment:
Ah yes of course! I'm still used to spark types!
--
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]