File tree Expand file tree Collapse file tree 1 file changed +5
-17
lines changed
rust/cubestore/cubestore/src/sql Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -416,23 +416,11 @@ impl TableCreator {
416
416
}
417
417
418
418
let partition_split_threshold = if let Some ( locations) = locations. as_ref ( ) {
419
- let size = join_all (
420
- locations
421
- . iter ( )
422
- . map ( |location| {
423
- let location = location. to_string ( ) ;
424
- let import_service = self . import_service . clone ( ) ;
425
- return async move {
426
- import_service. estimate_location_row_count ( & location) . await
427
- } ;
428
- } )
429
- . collect :: < Vec < _ > > ( ) ,
430
- )
431
- . await
432
- . into_iter ( )
433
- . collect :: < Result < Vec < _ > , _ > > ( ) ?
434
- . into_iter ( )
435
- . sum :: < u64 > ( ) ;
419
+ let import_service = self . import_service . clone ( ) ;
420
+ let mut size = 0 ;
421
+ for location in locations {
422
+ size += import_service. estimate_location_row_count ( location) . await ?;
423
+ }
436
424
437
425
let mut sel_workers_count = self . config_obj . select_workers ( ) . len ( ) as u64 ;
438
426
if sel_workers_count == 0 {
You can’t perform that action at this time.
0 commit comments