-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[fix](regression) Wait for stable colocate groups in plan tests #64361
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,6 +68,7 @@ suite("test_colocate_join_of_column_order") { | |
| sql("select * from test_colocate_join_of_column_order_t1 a join test_colocate_join_of_column_order_t2 b on a.k1=b.k2 and a.v=b.v;") | ||
| notContains "COLOCATE" | ||
| } | ||
| waitForColocateGroupStable("group_column_order") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This wait is after the four negative |
||
| explain { | ||
| sql("select * from test_colocate_join_of_column_order_t1 a join test_colocate_join_of_column_order_t2 b on a.k1=b.k2 and a.k2=b.k1;") | ||
| contains "COLOCATE" | ||
|
|
@@ -100,6 +101,7 @@ suite("test_colocate_join_of_column_order") { | |
| sql """insert into test_colocate_join_of_column_order_tb values(1,1);""" | ||
| sql """insert into test_colocate_join_of_column_order_tc values(1,1);""" | ||
|
|
||
| waitForColocateGroupStable("group_column_order3") | ||
| explain { | ||
| sql("""select /*+ set_var(disable_join_reorder=true) */ * from test_colocate_join_of_column_order_ta join [shuffle] (select cast((c2 + 1) as bigint) c2 from test_colocate_join_of_column_order_tb) test_colocate_join_of_column_order_tb on test_colocate_join_of_column_order_ta.c1 = test_colocate_join_of_column_order_tb.c2 join [shuffle] test_colocate_join_of_column_order_tc on test_colocate_join_of_column_order_tb.c2 = test_colocate_join_of_column_order_tc.c1;"""); | ||
| contains "COLOCATE" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shared helper does not handle Doris global colocate groups.
colocate_withaccepts names starting with__global__, andSHOW PROC '/colocation_group'reports those as the bare global name rather thandb.__global__...(seeColocateTableIndex.GroupId.getFullGroupName). With the current unconditional prefixing,waitForColocateGroupStable("__global__...")will time out even when the group is stable. Please either leave global group names unprefixed here or make this helper explicitly db-scoped.