Skip to content

Commit

Permalink
fix(query): z
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Jan 10, 2025
1 parent 898f429 commit e2c8675
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,14 @@ impl SerializeAggregateStream {
}

pub fn empty_block(bucket: isize, max_partition_count: usize) -> DataBlock {
DataBlock::empty_with_meta(AggregateSerdeMeta::create_agg_payload(
bucket,
max_partition_count,
))
DataBlock::new_with_meta(
vec![],
1,
Some(AggregateSerdeMeta::create_agg_payload(
bucket,
max_partition_count,
)),
)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl BlockMetaTransform<ExchangeShuffleMeta> for TransformExchangeAggregateSeria
continue;
}

let bucket = compute_block_number(bucket, max_partition_count)?;
let block_number = compute_block_number(bucket, max_partition_count)?;
let stream = SerializeAggregateStream::create(
&self.params,
SerializePayload::AggregatePayload(p),
Expand All @@ -174,7 +174,7 @@ impl BlockMetaTransform<ExchangeShuffleMeta> for TransformExchangeAggregateSeria
}
c
};
let c = serialize_block(bucket, c, &self.options)?;
let c = serialize_block(block_number, c, &self.options)?;
serialized_blocks.push(FlightSerialized::DataBlock(c));
}
};
Expand Down

0 comments on commit e2c8675

Please sign in to comment.