HuaHuaY commented on code in PR #50846:
URL: https://github.com/apache/arrow/pull/50846#discussion_r3827124336
##########
cpp/src/arrow/csv/writer.cc:
##########
@@ -601,13 +622,12 @@ class CSVWriterImpl : public ipc::RecordBatchWriter {
int64_t header_length = 0;
for (int col = 0; col < schema_->num_fields(); col++) {
const std::string& col_name = schema_->field(col)->name();
- header_length += col_name.size();
+ header_length += EscapedLength(col_name, options_.escape_style);
switch (quoting_style) {
Review Comment:
It seems that this `switch` doesn't do anything now and should be removed.
--
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]