@@ -1007,11 +1007,11 @@ impl DatabricksAdapter {
10071007 self . config. endpoint
10081008 ) ;
10091009
1010- let mut total_read_bytes : u64 = 0 ;
1011- let mut total_read_remote_bytes : u64 = 0 ;
1012- let mut total_read_cache_bytes : u64 = 0 ;
1013- let mut total_write_remote_bytes : u64 = 0 ;
1014- let mut total_spill_to_disk_bytes : u64 = 0 ;
1010+ let mut _total_read_bytes : u64 = 0 ;
1011+ let mut _total_read_remote_bytes : u64 = 0 ;
1012+ let mut _total_read_cache_bytes : u64 = 0 ;
1013+ let mut _total_write_remote_bytes : u64 = 0 ;
1014+ let mut _total_spill_to_disk_bytes : u64 = 0 ;
10151015 let mut page_token: Option < String > = None ;
10161016
10171017 loop {
@@ -1049,11 +1049,11 @@ impl DatabricksAdapter {
10491049
10501050 for entry in & body. res {
10511051 if let Some ( ref m) = entry. metrics {
1052- total_read_bytes += m. read_bytes . unwrap_or ( 0 ) ;
1053- total_read_remote_bytes += m. read_remote_bytes . unwrap_or ( 0 ) ;
1054- total_read_cache_bytes += m. read_cache_bytes . unwrap_or ( 0 ) ;
1055- total_write_remote_bytes += m. write_remote_bytes . unwrap_or ( 0 ) ;
1056- total_spill_to_disk_bytes += m. spill_to_disk_bytes . unwrap_or ( 0 ) ;
1052+ _total_read_bytes += m. read_bytes . unwrap_or ( 0 ) ;
1053+ _total_read_remote_bytes += m. read_remote_bytes . unwrap_or ( 0 ) ;
1054+ _total_read_cache_bytes += m. read_cache_bytes . unwrap_or ( 0 ) ;
1055+ _total_write_remote_bytes += m. write_remote_bytes . unwrap_or ( 0 ) ;
1056+ _total_spill_to_disk_bytes += m. spill_to_disk_bytes . unwrap_or ( 0 ) ;
10571057 }
10581058 }
10591059
@@ -1064,15 +1064,15 @@ impl DatabricksAdapter {
10641064 }
10651065 }
10661066
1067- let total_write_bytes = total_write_remote_bytes + total_spill_to_disk_bytes ;
1067+ let total_write_bytes = _total_write_remote_bytes + _total_spill_to_disk_bytes ;
10681068
10691069 // eprintln!(
10701070 // "[databricks-adapter] query history I/O breakdown: \
10711071 // total_read_bytes={total_read_bytes} (total_read_remote_bytes={total_read_remote_bytes}, total_read_cache_bytes={total_read_cache_bytes}), \
10721072 // total_write_bytes={total_write_bytes} (total_write_remote_bytes={total_write_remote_bytes}, total_spill_to_disk_bytes={total_spill_to_disk_bytes})"
10731073 // );
10741074
1075- Ok ( ( total_read_bytes , total_write_bytes) )
1075+ Ok ( ( _total_read_bytes , total_write_bytes) )
10761076 }
10771077
10781078 async fn ensure_cluster_ready ( & self ) -> Result < ( String , bool ) > {
0 commit comments