Skip to content

Commit

Permalink
fix case
Browse files Browse the repository at this point in the history
Signed-off-by: guo-shaoge <shaoge1994@163.com>
  • Loading branch information
guo-shaoge committed Aug 25, 2021
1 parent 387aa52 commit dd5ba4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
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 @@ -63,7 +63,7 @@
"select b from t1 where b in (1, 2, 3, 4)",
"select * from t1 where a > 10 union all select * from t2 where b > 20",
"select * from t1 where a > 10 union distinct 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 @@ -378,12 +378,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)",
" └─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

0 comments on commit dd5ba4a

Please sign in to comment.