File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -904,8 +904,10 @@ async fn collect_record_batches_to_display(
904904 let mut rows_so_far = 0 ;
905905 let mut record_batches = Vec :: default ( ) ;
906906 let mut has_more = false ;
907+ println ! ( "==> min_rows: {min_rows}, max_rows: {max_rows}, max_bytes: {max_bytes}" ) ;
907908
908- while ( size_estimate_so_far < max_bytes && rows_so_far < max_rows) || rows_so_far < min_rows {
909+ while size_estimate_so_far < max_bytes && rows_so_far < max_rows && rows_so_far < min_rows {
910+ println ! ( "==> size_estimate_so_far: {size_estimate_so_far}, rows_so_far: {rows_so_far}" ) ;
909911 let mut rb = match stream. next ( ) . await {
910912 None => {
911913 break ;
@@ -944,6 +946,9 @@ async fn collect_record_batches_to_display(
944946 record_batches. push ( rb) ;
945947 }
946948 }
949+ println ! (
950+ "==> after while, size_estimate_so_far: {size_estimate_so_far}, rows_so_far: {rows_so_far}"
951+ ) ;
947952
948953 if record_batches. is_empty ( ) {
949954 return Ok ( ( Vec :: default ( ) , false ) ) ;
You can’t perform that action at this time.
0 commit comments