-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the physical plan for TPC-H Q19. Add Q19 to the different test/runner/benchmark binaries.
- Loading branch information
Showing
17 changed files
with
592 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-- No modifications | ||
select | ||
sum(l_extendedprice* (1 - l_discount)) as revenue | ||
from | ||
lineitem, | ||
part | ||
where | ||
( | ||
p_partkey = l_partkey | ||
and p_brand = 'Brand#12' | ||
and p_container in ('SM CASE', 'SM BOX', 'SM PACK', 'SM PKG') | ||
and l_quantity >= 1 and l_quantity <= 1 + 10 | ||
and p_size between 1 and 5 | ||
and l_shipmode in ('AIR', 'AIR REG') | ||
and l_shipinstruct = 'DELIVER IN PERSON' | ||
) | ||
or | ||
( | ||
p_partkey = l_partkey | ||
and p_brand = 'Brand#23' | ||
and p_container in ('MED BAG', 'MED BOX', 'MED PKG', 'MED PACK') | ||
and l_quantity >= 10 and l_quantity <= 10 + 10 | ||
and p_size between 1 and 10 | ||
and l_shipmode in ('AIR', 'AIR REG') | ||
and l_shipinstruct = 'DELIVER IN PERSON' | ||
) | ||
or | ||
( | ||
p_partkey = l_partkey | ||
and p_brand = 'Brand#34' | ||
and p_container in ('LG CASE', 'LG BOX', 'LG PACK', 'LG PKG') | ||
and l_quantity >= 20 and l_quantity <= 20 + 10 | ||
and p_size between 1 and 15 | ||
and l_shipmode in ('AIR', 'AIR REG') | ||
and l_shipinstruct = 'DELIVER IN PERSON' | ||
); |
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
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,22 @@ | ||
#include "BackendC.h" | ||
namespace inkfuse { | ||
|
||
/// C code that's dumped into global_runtime.h during initial runtime | ||
/// code generation. | ||
char* BackendC::runtime_functions = R"PRE( | ||
struct InLiteralList { | ||
const char** start; | ||
uint64_t size; | ||
}; | ||
bool in_strlist(const char* strlist, char* arg) { | ||
const struct InLiteralList* list = (const struct InLiteralList*) strlist; | ||
bool res = false; | ||
for (uint64_t k = 0; k < list->size; ++k) { | ||
res |= (strcmp(list->start[k], arg) == 0); | ||
} | ||
return res; | ||
} | ||
)PRE"; | ||
|
||
}; |
Oops, something went wrong.