Skip to content

Commit 253e49c

Browse files
committed
add csvfmt with
1 parent 86c8754 commit 253e49c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

datafusion/datasource-csv/src/file_format.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,13 @@ impl CsvFormat {
296296
self
297297
}
298298

299+
/// Set whether rows should be truncated to the column width
300+
/// - defaults to false
301+
pub fn with_truncate_rows(mut self, truncate_rows: bool) -> Self {
302+
self.options.truncated_rows = Some(truncate_rows);
303+
self
304+
}
305+
299306
/// The delimiter character.
300307
pub fn delimiter(&self) -> u8 {
301308
self.options.delimiter

0 commit comments

Comments
 (0)