File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed
Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -848,35 +848,4 @@ mod tests {
848848
849849 Ok ( ( ) )
850850 }
851-
852- #[ tokio:: test]
853- async fn test_list_files_cache_not_set ( ) -> Result < ( ) , DataFusionError > {
854- let rt = RuntimeEnvBuilder :: new ( )
855- . with_cache_manager ( CacheManagerConfig :: default ( ) . with_list_files_cache ( None ) )
856- . build_arc ( )
857- . unwrap ( ) ;
858-
859- let ctx = SessionContext :: new_with_config_rt ( SessionConfig :: default ( ) , rt) ;
860-
861- ctx. register_udtf (
862- "list_files_cache" ,
863- Arc :: new ( ListFilesCacheFunc :: new (
864- ctx. task_ctx ( ) . runtime_env ( ) . cache_manager . clone ( ) ,
865- ) ) ,
866- ) ;
867-
868- let rbs = ctx
869- . sql ( "SELECT * FROM list_files_cache()" )
870- . await ?
871- . collect ( )
872- . await ?;
873- assert_snapshot ! ( batches_to_string( & rbs) , @r"
874- +------+---------------------+------------+---------------+
875- | path | metadata_size_bytes | expires_in | metadata_list |
876- +------+---------------------+------------+---------------+
877- +------+---------------------+------------+---------------+
878- " ) ;
879-
880- Ok ( ( ) )
881- }
882851}
You can’t perform that action at this time.
0 commit comments