-
Notifications
You must be signed in to change notification settings - Fork 412
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
MPP Unit Test don't support semi join #6542
Labels
Comments
The mpp task test called function |
There are 3 ways to solve it:
|
The second way could be as follows: TEST_F(ComputeServerRunner, runFineGrainedShuffleJoinTest)
try
{
startServers(3);
constexpr size_t join_type_num = 7;
constexpr tipb::JoinType join_types[join_type_num] = {
tipb::JoinType::TypeInnerJoin,
tipb::JoinType::TypeLeftOuterJoin,
tipb::JoinType::TypeRightOuterJoin,
tipb::JoinType::TypeSemiJoin,
tipb::JoinType::TypeAntiSemiJoin,
tipb::JoinType::TypeLeftOuterSemiJoin,
tipb::JoinType::TypeAntiLeftOuterSemiJoin,
};
// fine-grained shuffle is enabled.
constexpr uint64_t enable = 8;
constexpr uint64_t disable = 0;
for (auto join_type : join_types)
{
auto properties = DB::tests::getDAGPropertiesForTest(serverNum());
auto request = context
.scan("test_db", "l_table_2")
.join(context.scan("test_db", "r_table_2"), join_type, {col("s1"), col("s2")}, disable)
.project({col("l_table_2.s1"), col("l_table_2.s2"), col("l_table_2.s3")});
const auto expected_cols = buildAndExecuteMPPTasks(request);
auto request2 = context
.scan("test_db", "l_table_2")
.join(context.scan("test_db", "r_table_2"), join_type, {col("s1"), col("s2")}, enable)
.project({col("l_table_2.s1"), col("l_table_2.s2"), col("l_table_2.s3")});
auto tasks = request2.buildMPPTasks(context, properties);
for (auto & task : tasks)
{
setFineGrainedShuffleForExchange(const_cast<tipb::Executor &>(task.dag_request->root_executor()));
}
const auto actual_cols = executeMPPTasks(tasks, properties, MockComputeServerManager::instance().getServerConfigMap());
ASSERT_COLUMNS_EQ_UR(expected_cols, actual_cols);
}
}
CATCH |
12 tasks
It's not a bug (it's a XXX!). Adjusting label. |
Get! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
Test pass
3. What did you see instead (Required)
Abort
4. What is your TiFlash version? (Required)
The text was updated successfully, but these errors were encountered: