Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: coldWater <forsaken628@gmail.com>
  • Loading branch information
forsaken628 committed Oct 24, 2024
1 parent 8eb49b7 commit a7c7ce7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ impl<T: HashMethodBounds, V: Send + Sync + 'static> HashTableCell<T, V> {
self.hashtable.len()
}

pub fn is_empty(&self) -> bool {
self.len() == 0
}

pub fn allocated_bytes(&self) -> usize {
self.hashtable.bytes_len(false)
+ self.arena.allocated_bytes()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl<Method: HashMethodBounds> BlockMetaTransform<ExchangeShuffleMeta>
&self.location_prefix,
payload,
)?,
false => agg_spilling_aggregate_payload::<Method>(
false => agg_spilling_aggregate_payload(
self.ctx.clone(),
self.operator.clone(),
&self.location_prefix,
Expand Down Expand Up @@ -239,7 +239,7 @@ impl<Method: HashMethodBounds> BlockMetaTransform<ExchangeShuffleMeta>
}
}

fn agg_spilling_aggregate_payload<Method: HashMethodBounds>(
fn agg_spilling_aggregate_payload(
ctx: Arc<QueryContext>,
operator: Operator,
location_prefix: &str,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ impl<Method: HashMethodBounds> BlockMetaTransform<ExchangeShuffleMeta>
&self.location_prefix,
payload,
)?,
false => agg_spilling_group_by_payload::<Method>(
false => agg_spilling_group_by_payload(
self.ctx.clone(),
self.operator.clone(),
&self.location_prefix,
Expand Down Expand Up @@ -292,7 +292,7 @@ fn get_columns(data_block: DataBlock) -> Vec<BlockEntry> {
data_block.columns().to_vec()
}

fn agg_spilling_group_by_payload<Method: HashMethodBounds>(
fn agg_spilling_group_by_payload(
ctx: Arc<QueryContext>,
operator: Operator,
location_prefix: &str,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub struct TransformAsyncFunction {
}

impl TransformAsyncFunction {
pub fn new(
pub(crate) fn new(
ctx: Arc<QueryContext>,
async_func_descs: Vec<AsyncFunctionDesc>,
operators: BTreeMap<usize, Arc<DictionaryOperator>>,
Expand Down

0 comments on commit a7c7ce7

Please sign in to comment.