refactor: address Jake's comment

pull/24376/head
Nga Tran 2021-04-16 17:27:40 -04:00
parent 41aa4d5475
commit b3e110a241
1 changed files with 2 additions and 2 deletions

View File

@ -301,7 +301,7 @@ impl Storage {
if let Err(e) = Self::read_file( if let Err(e) = Self::read_file(
filename, filename,
projection.as_slice(), projection.as_slice(),
&predicate_builder, predicate_builder.as_ref(),
batch_size, batch_size,
response_tx, response_tx,
limit, limit,
@ -331,7 +331,7 @@ impl Storage {
fn read_file( fn read_file(
filename: String, filename: String,
projection: &[usize], projection: &[usize],
predicate_builder: &Option<RowGroupPredicateBuilder>, predicate_builder: Option<&RowGroupPredicateBuilder>,
batch_size: usize, batch_size: usize,
response_tx: Sender<ArrowResult<RecordBatch>>, response_tx: Sender<ArrowResult<RecordBatch>>,
limit: Option<usize>, limit: Option<usize>,