Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ impl IPhysicalPlan for AggregatePartial {
};
let shared_partition_streams = SharedPartitionStream::new(
builder.main_pipeline.output_len(),
max_block_rows,
0,
Comment thread
dqhl76 marked this conversation as resolved.
max_block_bytes,
bucket_num,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ use crate::pipelines::processors::transforms::aggregator::statistics::Aggregatio
use crate::pipelines::processors::transforms::aggregator::transform_aggregate_partial::HashTable;
use crate::sessions::QueryContext;

const SPILL_BUCKET_NUM: usize = 2;
Comment thread
dqhl76 marked this conversation as resolved.
const SPILL_BUCKET_NUM: usize = 4;
const SPILL_BUCKET_BITS: u64 = SPILL_BUCKET_NUM.trailing_zeros() as u64;

enum Stage {
Expand Down Expand Up @@ -113,11 +113,7 @@ impl NewTransformFinalAggregate {
ctx.clone(),
SPILL_BUCKET_NUM,
params.spill_schema(),
LocalPartitionStream::new(
params.max_block_rows,
params.max_block_bytes,
SPILL_BUCKET_NUM,
),
LocalPartitionStream::new(0, params.max_block_bytes, SPILL_BUCKET_NUM),
)?;

Ok(Box::new(NewTransformFinalAggregate {
Expand Down
1 change: 1 addition & 0 deletions src/query/service/src/spillers/async_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ impl SpillsDataWriter {
.set_compression(Compression::LZ4_RAW)
.set_statistics_enabled(EnabledStatistics::None)
.set_bloom_filter_enabled(false)
.set_dictionary_enabled(false)
.build();

let arrow_schema = Arc::new(Schema::from(table_schema.as_ref()));
Expand Down
Loading