MCPcopy Create free account
hub / github.com/apache/datafusion / with_newlines_in_values

Method with_newlines_in_values

datafusion/datasource-csv/src/file_format.rs:287–290  ·  view source on GitHub ↗

Specifies whether newlines in (quoted) values are supported. Parsing newlines in quoted values may be affected by execution behaviour such as parallel file scanning. Setting this to `true` ensures that newlines in values are parsed successfully, which may reduce performance. The default behaviour depends on the `datafusion.catalog.newlines_in_values` setting.

(mut self, newlines_in_values: bool)

Source from the content-addressed store, hash-verified

285 ///
286 /// The default behaviour depends on the `datafusion.catalog.newlines_in_values` setting.
287 pub fn with_newlines_in_values(mut self, newlines_in_values: bool) -> Self {
288 self.options.newlines_in_values = Some(newlines_in_values);
289 self
290 }
291
292 /// Set a `FileCompressionType` of CSV
293 /// - defaults to `FileCompressionType::UNCOMPRESSED`

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected