forked from databendlabs/databend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request databendlabs#6572 from youngsofun/fix
fix(query): catchup planner update in http handler.
- Loading branch information
Showing
4 changed files
with
45 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
statement ok | ||
set enable_planner_v2 = 1; | ||
|
||
statement ok | ||
drop table if exists t1 all; | ||
|
||
statement ok | ||
create table t1(a integer, b integer, c integer, d integer, e integer); | ||
|
||
statement ok | ||
insert into t1(e,c,b,d,a) values(103,102,100,101,104); | ||
|
||
statement ok | ||
insert into t1(a,c,d,e,b) values(107,106,108,109,105); | ||
|
||
statement query IIIII | ||
select c as col1, | ||
abs(d-e) as col2, | ||
case a+1 when b then 111 when c then 222 | ||
when d then 333 when e then 444 else 555 end as col3, | ||
a+b*2+c*3+d*4 as col4, | ||
e as col5 | ||
from t1 | ||
where d not between 110 and 150 | ||
or c between b-2 and d+2 | ||
or (e>c or e<d) | ||
order by col1,col5,col3,col2,col4; | ||
|
||
---- | ||
102 2 111 1014 103 | ||
106 1 111 1067 109 | ||
|
||
statement ok | ||
drop table if exists t1 all; | ||
|
||
statement ok | ||
set enable_planner_v2 = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters