Function datafusion::datasource::get_statistics_with_limit
source · pub async fn get_statistics_with_limit(
all_files: impl Stream<Item = Result<(PartitionedFile, Statistics)>>,
file_schema: SchemaRef,
limit: Option<usize>
) -> Result<(Vec<PartitionedFile>, Statistics)>
Expand description
Get all files as well as the file level summary statistics (no statistic for partition columns).
If the optional limit
is provided, includes only sufficient files.
Needed to read up to limit
number of rows.