@@ -305,6 +305,30 @@ mod tests {
305305 use datafusion_common:: HashMap ;
306306 use object_store:: ObjectMeta ;
307307 use object_store:: path:: Path ;
308+ use crate :: cache:: TableScopedPath ;
309+ use crate :: cache:: cache_manager:: {
310+ CachedFileMetadata , DEFAULT_FILE_STATISTICS_MEMORY_LIMIT ,
311+ } ;
312+ use arrow:: array:: { Int32Array , ListArray , RecordBatch } ;
313+ use arrow:: buffer:: { OffsetBuffer , ScalarBuffer } ;
314+ use arrow:: datatypes:: { DataType , Field , Schema , TimeUnit } ;
315+ use chrono:: DateTime ;
316+ use datafusion_common:: heap_size:: { DFHeapSize , DFHeapSizeCtx } ;
317+ use datafusion_common:: stats:: Precision ;
318+ use datafusion_common:: { ColumnStatistics , ScalarValue , Statistics } ;
319+ use datafusion_expr:: ColumnarValue ;
320+ use datafusion_physical_expr_common:: physical_expr:: PhysicalExpr ;
321+ use datafusion_physical_expr_common:: sort_expr:: { LexOrdering , PhysicalSortExpr } ;
322+ use crate :: cache:: cache_manager:: {
323+ CachedFileList , DEFAULT_LIST_FILES_CACHE_MEMORY_LIMIT , meta_heap_bytes,
324+ } ;
325+ use crate :: cache:: default_cache:: TimeProvider ;
326+ use crate :: cache:: { CacheKey , CacheValue } ;
327+ use datafusion_common:: TableReference ;
328+ use datafusion_common:: instant:: Instant ;
329+ use std:: sync:: Mutex ;
330+ use std:: thread;
331+ use std:: time:: Duration ;
308332
309333 pub struct TestFileMetadata {
310334 metadata : String ,
@@ -780,21 +804,6 @@ mod tests {
780804 assert_eq ! ( cache. list_entries( ) , HashMap :: from( [ ] ) ) ;
781805 }
782806
783- use crate :: cache:: TableScopedPath ;
784- use crate :: cache:: cache_manager:: {
785- CachedFileMetadata , DEFAULT_FILE_STATISTICS_MEMORY_LIMIT ,
786- } ;
787- use arrow:: array:: { Int32Array , ListArray , RecordBatch } ;
788- use arrow:: buffer:: { OffsetBuffer , ScalarBuffer } ;
789- use arrow:: datatypes:: { DataType , Field , Schema , TimeUnit } ;
790- use chrono:: DateTime ;
791- use datafusion_common:: heap_size:: { DFHeapSize , DFHeapSizeCtx } ;
792- use datafusion_common:: stats:: Precision ;
793- use datafusion_common:: { ColumnStatistics , ScalarValue , Statistics } ;
794- use datafusion_expr:: ColumnarValue ;
795- use datafusion_physical_expr_common:: physical_expr:: PhysicalExpr ;
796- use datafusion_physical_expr_common:: sort_expr:: { LexOrdering , PhysicalSortExpr } ;
797-
798807 fn create_test_meta ( path : & str , size : u64 ) -> ObjectMeta {
799808 ObjectMeta {
800809 location : Path :: from ( path) ,
@@ -1269,17 +1278,6 @@ mod tests {
12691278 ( object_meta, value)
12701279 }
12711280
1272- use crate :: cache:: cache_manager:: {
1273- CachedFileList , DEFAULT_LIST_FILES_CACHE_MEMORY_LIMIT , meta_heap_bytes,
1274- } ;
1275- use crate :: cache:: default_cache:: TimeProvider ;
1276- use crate :: cache:: { CacheKey , CacheValue } ;
1277- use datafusion_common:: TableReference ;
1278- use datafusion_common:: instant:: Instant ;
1279- use std:: sync:: Mutex ;
1280- use std:: thread;
1281- use std:: time:: Duration ;
1282-
12831281 struct MockTimeProvider {
12841282 base : Instant ,
12851283 offset : Mutex < Duration > ,
0 commit comments