Asura7969 commented on code in PR #8251:
URL: https://github.com/apache/arrow-datafusion/pull/8251#discussion_r1397368983


##########
datafusion/core/src/datasource/listing_table_factory.rs:
##########
@@ -73,6 +73,8 @@ impl TableProviderFactory for ListingTableFactory {
                 CsvFormat::default()
                     .with_has_header(cmd.has_header)
                     .with_delimiter(cmd.delimiter as u8)
+                    .with_quote(cmd.options.get("quote").map_or(b'"', |x| 
x.as_bytes()[0]))
+                    .with_escape(cmd.options.get("escape").map_or(None, |x| 
Some(x.as_bytes()[0])))
                     .with_file_compression_type(file_compression_type),

Review Comment:
   I'm not sure if this is the best way, maybe we can open another issue to 
improve it



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