-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(executor): Basic in-application-memory
DynamicFilterExecutor
, …
…pass tpch q11, q22 e2e tests (#3681) * initial * stash * do-appply-planner-test * fmt * clippy * license * minor * stash * fix required dist, output indices * fmt * stash * revert * do-apply-planner-test * success! * more e2e * minor cleanup * stash * fix * fix * fix * minor * minor * madsim * clippy * fmt * minor * fix * fix, apply code review suggestions * fix * fix, improve * simplify * clippy * refactor into sub functions * clippy * minor * fix * fix: rowsort * fmt * use literal in expression * clippy * fmt * use madsim btreemap * minor * fmt * respect previous behaviour - return empty message * bump-ci Co-authored-by: TennyZhuang <zty0826@gmail.com>
- Loading branch information
1 parent
07f282b
commit d767d99
Showing
17 changed files
with
658 additions
and
9 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,72 @@ | ||
query IR rowsort | ||
select * from tpch_q11; | ||
---- | ||
82 19919213.4 | ||
182 12562394.1 | ||
175 9253263.4 | ||
142 8273960.3 | ||
124 8203209.3 | ||
116 7520874.2 | ||
51 7264184.5 | ||
168 7244030.2 | ||
73 7115781.1 | ||
32 6852925.6 | ||
130 6530034.1 | ||
199 6339641.5 | ||
166 5445353.3 | ||
72 4900497.3 | ||
75 4808130.4 | ||
132 4781984.1 | ||
74 4702018.3 | ||
100 4642272.6 | ||
30 4638608.8 | ||
24 4180139.5 | ||
44 3997453.7 | ||
158 3737919.4 | ||
68 3690702.4 | ||
108 3469209.3 | ||
22 3467053.8 | ||
2 3366668.6 | ||
137 3269230.1 | ||
13 3185424.5 | ||
91 2951493.4 | ||
155 2924499.5 | ||
200 2895688.3 | ||
12 2381625.3 | ||
99 2353581.3 | ||
151 2298313.0 | ||
10 2245355.5 | ||
19 2217961.9 | ||
8 2172003.9 | ||
58 2118624.6 | ||
92 2091581.4 | ||
42 2073731.3 | ||
55 1998844.2 | ||
144 1963651.4 | ||
50 1854529.6 | ||
28 1825685.6 | ||
172 1812423.0 | ||
64 1811894.6 | ||
37 1781994.1 | ||
128 1706573.0 | ||
110 1635451.6 | ||
62 1232507.6 | ||
102 1213422.0 | ||
66 1148101.4 | ||
6 1130989.3 | ||
119 982887.8 | ||
112 948072.8 | ||
46 909722.4 | ||
191 786330.8 | ||
16 667751.1 | ||
113 663824.2 | ||
106 647708.1 | ||
173 583317.5 | ||
146 573455.5 | ||
122 459864.5 | ||
52 358792.4 | ||
162 290757.6 | ||
152 229781.6 | ||
164 179298.7 | ||
192 120406.1 | ||
150 106928.1 |
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,5 @@ | ||
query TT rowsort | ||
select * from tpch_q22; | ||
---- | ||
30 1 7638.57 | ||
31 2 14318.40 |
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,30 @@ | ||
statement ok | ||
create materialized view tpch_q11 as | ||
select | ||
ps_partkey, | ||
round(sum(ps_supplycost * ps_availqty), 1) as value | ||
from | ||
partsupp, | ||
supplier, | ||
nation | ||
where | ||
ps_suppkey = s_suppkey | ||
and s_nationkey = n_nationkey | ||
and n_name = 'ARGENTINA' | ||
group by | ||
ps_partkey | ||
having | ||
sum(ps_supplycost * ps_availqty) > ( | ||
select | ||
sum(ps_supplycost * ps_availqty) * 0.0001000000 | ||
from | ||
partsupp, | ||
supplier, | ||
nation | ||
where | ||
ps_suppkey = s_suppkey | ||
and s_nationkey = n_nationkey | ||
and n_name = 'ARGENTINA' | ||
) | ||
order by | ||
value desc; |
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,39 @@ | ||
statement ok | ||
create materialized view tpch_q22 as | ||
select | ||
cntrycode, | ||
count(*) as numcust, | ||
sum(c_acctbal) as totacctbal | ||
from | ||
( | ||
select | ||
substring(c_phone from 1 for 2) as cntrycode, | ||
c_acctbal | ||
from | ||
customer | ||
where | ||
substring(c_phone from 1 for 2) in | ||
('30', '24', '31', '38', '25', '34', '37') | ||
and c_acctbal > ( | ||
select | ||
avg(c_acctbal) | ||
from | ||
customer | ||
where | ||
c_acctbal > 0.00 | ||
and substring(c_phone from 1 for 2) in | ||
('30', '24', '31', '38', '25', '34', '37') | ||
) | ||
and not exists ( | ||
select | ||
* | ||
from | ||
orders | ||
where | ||
o_custkey = c_custkey | ||
) | ||
) as custsale | ||
group by | ||
cntrycode | ||
order by | ||
cntrycode; |
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
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
Oops, something went wrong.