File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,6 @@ itertools = "0.13"
6666log = " ^0.4"
6767mockito = " ^1"
6868murmur3 = " 0.5.2"
69- num_cpus = " 1"
7069once_cell = " 1"
7170opendal = " 0.48"
7271ordered-float = " 4.0.0"
Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ fnv = { workspace = true }
6161futures = { workspace = true }
6262itertools = { workspace = true }
6363murmur3 = { workspace = true }
64- num_cpus = { workspace = true }
6564once_cell = { workspace = true }
6665opendal = { workspace = true }
6766ordered-float = { workspace = true }
Original file line number Diff line number Diff line change @@ -61,7 +61,9 @@ pub struct TableScanBuilder<'a> {
6161
6262impl < ' a > TableScanBuilder < ' a > {
6363 pub ( crate ) fn new ( table : & ' a Table ) -> Self {
64- let num_cpus = num_cpus:: get ( ) ;
64+ let num_cpus = std:: thread:: available_parallelism ( )
65+ . expect ( "failed to get number of CPUs" )
66+ . get ( ) ;
6567
6668 Self {
6769 table,
You can’t perform that action at this time.
0 commit comments