Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions datafusion/core/src/datasource/file_format/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,12 @@ impl<'a> NdJsonReadOptions<'a> {
self.file_sort_order = file_sort_order;
self
}

/// Specify how many rows to read for schema inference
pub fn schema_infer_max_records(mut self, schema_infer_max_records: usize) -> Self {
self.schema_infer_max_records = schema_infer_max_records;
self
}
}

#[async_trait]
Expand Down