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

planner: fix the unstable test TestOrderedResultModeOnOtherOperators #26481

Merged
merged 4 commits into from
Jul 23, 2021
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion planner/core/testdata/ordered_result_mode_suite_in.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"select * from t1 where a > 10 union distinct select * from t2 where b > 20",
"select * from t1 where a > 10 intersect select * from t2 where b > 20",
"select * from t1 where a > 10 except select * from t2 where b > 20",
"select row_number() over(partition by a) as row_no, sum(b) over(partition by a) as sum_b from t1",
"select sum(b) over(partition by a) as sum_b from t1",
"select min(a), max(b), sum(c) from t1 group by d",
"select min(a), max(b), sum(c) from t1 group by d having max(b) < 20",
"select case when a=1 then 'a1' when a=2 then 'a2' else 'ax' end from t1 "
Expand Down
11 changes: 5 additions & 6 deletions planner/core/testdata/ordered_result_mode_suite_out.json
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,11 @@
},
{
"Plan": [
"Projection_10 10000.00 root Column#8, Column#7",
"└─Sort_11 10000.00 root test.t1.a, Column#7, Column#8",
" └─Window_13 10000.00 root row_number()->Column#8 over(partition by test.t1.a rows between current row and current row)",
" └─Window_14 10000.00 root sum(cast(test.t1.b, decimal(32,0) BINARY))->Column#7 over(partition by test.t1.a)",
" └─TableReader_17 10000.00 root data:TableFullScan_16",
" └─TableFullScan_16 10000.00 cop[tikv] table:t1 keep order:true, stats:pseudo"
"Projection_8 10000.00 root Column#6",
"└─Sort_9 10000.00 root test.t1.b, test.t1.a, Column#6",
" └─Window_11 10000.00 root sum(cast(test.t1.b, decimal(32,0) BINARY))->Column#6 over(partition by test.t1.a)",
" └─TableReader_13 10000.00 root data:TableFullScan_12",
" └─TableFullScan_12 10000.00 cop[tikv] table:t1 keep order:true, stats:pseudo"
]
},
{
Expand Down