@@ -60,6 +60,7 @@ async fn check_stats_precision_with_filter_pushdown() {
6060    options. execution . parquet . pushdown_filters  = true ; 
6161
6262    // Scan without filter, stats are exact 
63+     #[ expect( deprecated) ]  
6364    let  exec = table. scan ( & state,  None ,  & [ ] ,  None ) . await . unwrap ( ) ; 
6465    assert_eq ! ( 
6566        exec. partition_statistics( None ) . unwrap( ) . num_rows, 
@@ -71,6 +72,7 @@ async fn check_stats_precision_with_filter_pushdown() {
7172    // (it is not a partition filter). Therefore; it will be pushed down to the 
7273    // source operator after the appropriate optimizer pass. 
7374    let  filter_expr = Expr :: gt ( col ( "id" ) ,  lit ( 1 ) ) ; 
75+     #[ expect( deprecated) ]  
7476    let  exec_with_filter = table
7577        . scan ( & state,  None ,  std:: slice:: from_ref ( & filter_expr) ,  None ) 
7678        . await 
@@ -119,6 +121,7 @@ async fn load_table_stats_with_session_level_cache() {
119121
120122    //Session 1 first time list files 
121123    assert_eq ! ( get_static_cache_size( & state1) ,  0 ) ; 
124+     #[ expect( deprecated) ]  
122125    let  exec1 = table1. scan ( & state1,  None ,  & [ ] ,  None ) . await . unwrap ( ) ; 
123126
124127    assert_eq ! ( 
@@ -135,6 +138,7 @@ async fn load_table_stats_with_session_level_cache() {
135138    //Session 2 first time list files 
136139    //check session 1 cache result not show in session 2 
137140    assert_eq ! ( get_static_cache_size( & state2) ,  0 ) ; 
141+     #[ expect( deprecated) ]  
138142    let  exec2 = table2. scan ( & state2,  None ,  & [ ] ,  None ) . await . unwrap ( ) ; 
139143    assert_eq ! ( 
140144        exec2. partition_statistics( None ) . unwrap( ) . num_rows, 
@@ -150,6 +154,7 @@ async fn load_table_stats_with_session_level_cache() {
150154    //Session 1 second time list files 
151155    //check session 1 cache result not show in session 2 
152156    assert_eq ! ( get_static_cache_size( & state1) ,  1 ) ; 
157+     #[ expect( deprecated) ]  
153158    let  exec3 = table1. scan ( & state1,  None ,  & [ ] ,  None ) . await . unwrap ( ) ; 
154159    assert_eq ! ( 
155160        exec3. partition_statistics( None ) . unwrap( ) . num_rows, 
@@ -195,6 +200,7 @@ async fn list_files_with_session_level_cache() {
195200
196201    //Session 1 first time list files 
197202    assert_eq ! ( get_list_file_cache_size( & state1) ,  0 ) ; 
203+     #[ expect( deprecated) ]  
198204    let  exec1 = table1. scan ( & state1,  None ,  & [ ] ,  None ) . await . unwrap ( ) ; 
199205    let  data_source_exec = exec1. as_any ( ) . downcast_ref :: < DataSourceExec > ( ) . unwrap ( ) ; 
200206    let  data_source = data_source_exec. data_source ( ) ; 
@@ -211,6 +217,7 @@ async fn list_files_with_session_level_cache() {
211217    //Session 2 first time list files 
212218    //check session 1 cache result not show in session 2 
213219    assert_eq ! ( get_list_file_cache_size( & state2) ,  0 ) ; 
220+     #[ expect( deprecated) ]  
214221    let  exec2 = table2. scan ( & state2,  None ,  & [ ] ,  None ) . await . unwrap ( ) ; 
215222    let  data_source_exec = exec2. as_any ( ) . downcast_ref :: < DataSourceExec > ( ) . unwrap ( ) ; 
216223    let  data_source = data_source_exec. data_source ( ) ; 
@@ -227,6 +234,7 @@ async fn list_files_with_session_level_cache() {
227234    //Session 1 second time list files 
228235    //check session 1 cache result not show in session 2 
229236    assert_eq ! ( get_list_file_cache_size( & state1) ,  1 ) ; 
237+     #[ expect( deprecated) ]  
230238    let  exec3 = table1. scan ( & state1,  None ,  & [ ] ,  None ) . await . unwrap ( ) ; 
231239    let  data_source_exec = exec3. as_any ( ) . downcast_ref :: < DataSourceExec > ( ) . unwrap ( ) ; 
232240    let  data_source = data_source_exec. data_source ( ) ; 
0 commit comments