Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use less data to run agg spill ut #8747

Merged
merged 2 commits into from
Feb 1, 2024
Merged
Changes from all 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
8 changes: 4 additions & 4 deletions dbms/src/Flash/tests/gtest_spill_aggregation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ try
{"d", TiDB::TP::TypeLongLong},
{"e", TiDB::TP::TypeLongLong}};
ColumnsWithTypeAndName column_datas;
size_t table_rows = 51200;
size_t duplicated_rows = 25600;
size_t table_rows = 12800;
size_t duplicated_rows = 6400;
UInt64 max_block_size = 500;
size_t original_max_streams = 20;
size_t total_data_size = 0;
Expand Down Expand Up @@ -114,9 +114,9 @@ try
/// test parallel aggregation
ASSERT_COLUMNS_EQ_UR(ref_columns, executeStreams(request, original_max_streams));
/// test spill with small max_block_size
/// the avg rows in one bucket is ~10240/256 = 400, so set the small_max_block_size to 300
/// the avg rows in one bucket is ~10240/256 = 400, so set the small_max_block_size to 100
/// is enough to test the output spilt
size_t small_max_block_size = 300;
size_t small_max_block_size = 100;
context.context->setSetting("max_block_size", Field(static_cast<UInt64>(small_max_block_size)));
auto blocks = getExecuteStreamsReturnBlocks(request, 1);
for (auto & block : blocks)
Expand Down