Skip to content

Commit 5e12a73

Browse files
committed
fix ci
1 parent 4beea49 commit 5e12a73

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

datafusion/core/tests/parquet/file_statistics.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ async fn check_stats_precision_with_filter_pushdown() {
5050
let filename = format!("{}/{}", testdata, "alltypes_plain.parquet");
5151
let table_path = ListingTableUrl::parse(filename).unwrap();
5252

53-
let opt = ListingOptions::new(Arc::new(ParquetFormat::default()));
53+
let opt =
54+
ListingOptions::new(Arc::new(ParquetFormat::default())).with_collect_stat(true);
5455
let table = get_listing_table(&table_path, None, &opt).await;
5556

5657
let (_, _, state) = get_cache_runtime_state();
@@ -109,7 +110,8 @@ async fn load_table_stats_with_session_level_cache() {
109110
// Create a separate DefaultFileStatisticsCache
110111
let (cache2, _, state2) = get_cache_runtime_state();
111112

112-
let opt = ListingOptions::new(Arc::new(ParquetFormat::default()));
113+
let opt =
114+
ListingOptions::new(Arc::new(ParquetFormat::default())).with_collect_stat(true);
113115

114116
let table1 = get_listing_table(&table_path, Some(cache1), &opt).await;
115117
let table2 = get_listing_table(&table_path, Some(cache2), &opt).await;

docs/source/library-user-guide/upgrading.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ and relied on the default value of `collect_stat` being `true`, you will need to
2929
explicitly set it to `true` in your code.
3030

3131
```rust
32+
use datafusion::datasource::listing::ListingOptions;
33+
3234
ListingOptions::new()
3335
.with_collect_stat(true)
3436
// other options

0 commit comments

Comments
 (0)