-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1917efb
commit bd332e7
Showing
285 changed files
with
102,823 additions
and
9,147 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 @@ | ||
.open /home/andre/Repositories/duckdb-wasm/data/tpch/0_01/duckdb/db | ||
call dbgen(sf = 0.01); | ||
checkpoint; | ||
.databases | ||
.tables |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,121 @@ | ||
.open /home/andre/Repositories/duckdb-wasm/data/tpch/0_01/sqlite.db | ||
|
||
create table nation ( | ||
n_nationkey integer primary key not null, | ||
n_name text not null, | ||
n_regionkey integer not null, | ||
n_comment text, | ||
foreign key (n_regionkey) references region(r_regionkey) | ||
); | ||
|
||
create table region ( | ||
r_regionkey integer primary key not null, | ||
r_name text not null, | ||
r_comment text | ||
); | ||
|
||
create table part ( | ||
p_partkey integer primary key not null, | ||
p_name text not null, | ||
p_mfgr text not null, | ||
p_brand text not null, | ||
p_type text not null, | ||
p_size integer not null, | ||
p_container text not null, | ||
p_retailprice integer not null, | ||
p_comment text not null | ||
); | ||
|
||
create table supplier ( | ||
s_suppkey integer primary key not null, | ||
s_name text not null, | ||
s_address text not null, | ||
s_nationkey integer not null, | ||
s_phone text not null, | ||
s_acctbal integer not null, | ||
s_comment text not null, | ||
foreign key (s_nationkey) references nation(n_nationkey) | ||
); | ||
|
||
create table partsupp ( | ||
ps_partkey integer not null, | ||
ps_suppkey integer not null, | ||
ps_availqty integer not null, | ||
ps_supplycost integer not null, | ||
ps_comment text not null, | ||
primary key (ps_partkey, ps_suppkey), | ||
foreign key (ps_suppkey) references supplier(s_suppkey), | ||
foreign key (ps_partkey) references part(p_partkey) | ||
); | ||
|
||
create table customer ( | ||
c_custkey integer primary key not null, | ||
c_name text not null, | ||
c_address text not null, | ||
c_nationkey integer not null, | ||
c_phone text not null, | ||
c_acctbal integer not null, | ||
c_mktsegment text not null, | ||
c_comment text not null, | ||
foreign key (c_nationkey) references nation(n_nationkey) | ||
); | ||
|
||
create table orders ( | ||
o_orderkey integer primary key not null, | ||
o_custkey integer not null, | ||
o_orderstatus text not null, | ||
o_totalprice decimal(12, 2) not null, | ||
o_orderdate date not null, | ||
o_orderpriority text not null, | ||
o_clerk text not null, | ||
o_shippriority integer not null, | ||
o_comment text not null, | ||
foreign key (o_custkey) references customer(c_custkey) | ||
); | ||
|
||
create table lineitem ( | ||
l_orderkey integer not null, | ||
l_partkey integer not null, | ||
l_suppkey integer not null, | ||
l_linenumber integer not null, | ||
l_quantity decimal(12, 2) not null, | ||
l_extendedprice decimal(12, 2) not null, | ||
l_discount decimal(12, 2) not null, | ||
l_tax decimal(12, 2) not null, | ||
l_returnflag text not null, | ||
l_linestatus text not null, | ||
l_shipdate date not null, | ||
l_commitdate date not null, | ||
l_receiptdate date not null, | ||
l_shipinstruct text not null, | ||
l_shipmode text not null, | ||
l_comment text not null, | ||
primary key (l_orderkey, l_linenumber), | ||
foreign key (l_orderkey) references orders(o_orderkey), | ||
foreign key (l_partkey, l_suppkey) references partsupp(ps_partkey, ps_suppkey) | ||
); | ||
|
||
.databases | ||
.tables | ||
|
||
.mode csv | ||
.separator | | ||
|
||
.import /home/andre/Repositories/duckdb-wasm/data/tpch/0_01/tbl/customer.tbl customer | ||
.import /home/andre/Repositories/duckdb-wasm/data/tpch/0_01/tbl/region.tbl region | ||
.import /home/andre/Repositories/duckdb-wasm/data/tpch/0_01/tbl/nation.tbl nation | ||
.import /home/andre/Repositories/duckdb-wasm/data/tpch/0_01/tbl/orders.tbl orders | ||
.import /home/andre/Repositories/duckdb-wasm/data/tpch/0_01/tbl/part.tbl part | ||
.import /home/andre/Repositories/duckdb-wasm/data/tpch/0_01/tbl/partsupp.tbl partsupp | ||
.import /home/andre/Repositories/duckdb-wasm/data/tpch/0_01/tbl/supplier.tbl supplier | ||
.import /home/andre/Repositories/duckdb-wasm/data/tpch/0_01/tbl/lineitem.tbl lineitem | ||
|
||
select count(*) from customer; | ||
select count(*) from region; | ||
select count(*) from nation; | ||
select count(*) from orders; | ||
select count(*) from part; | ||
select count(*) from partsupp; | ||
select count(*) from supplier; | ||
select count(*) from lineitem; | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,25 @@ | ||
0|ALGERIA|0| haggle. carefully final deposits detect slyly agai | ||
1|ARGENTINA|1|al foxes promise slyly according to the regular accounts. bold requests alon | ||
2|BRAZIL|1|y alongside of the pending deposits. carefully special packages are about the ironic forges. slyly special | ||
3|CANADA|1|eas hang ironic, silent packages. slyly regular packages are furiously over the tithes. fluffily bold | ||
4|EGYPT|4|y above the carefully unusual theodolites. final dugouts are quickly across the furiously regular d | ||
5|ETHIOPIA|0|ven packages wake quickly. regu | ||
6|FRANCE|3|refully final requests. regular, ironi | ||
7|GERMANY|3|l platelets. regular accounts x-ray: unusual, regular acco | ||
8|INDIA|2|ss excuses cajole slyly across the packages. deposits print aroun | ||
9|INDONESIA|2| slyly express asymptotes. regular deposits haggle slyly. carefully ironic hockey players sleep blithely. carefull | ||
10|IRAN|4|efully alongside of the slyly final dependencies. | ||
11|IRAQ|4|nic deposits boost atop the quickly final requests? quickly regula | ||
12|JAPAN|2|ously. final, express gifts cajole a | ||
13|JORDAN|4|ic deposits are blithely about the carefully regular pa | ||
14|KENYA|0| pending excuses haggle furiously deposits. pending, express pinto beans wake fluffily past t | ||
15|MOROCCO|0|rns. blithely bold courts among the closely regular packages use furiously bold platelets? | ||
16|MOZAMBIQUE|0|s. ironic, unusual asymptotes wake blithely r | ||
17|PERU|1|platelets. blithely pending dependencies use fluffily across the even pinto beans. carefully silent accoun | ||
18|CHINA|2|c dependencies. furiously express notornis sleep slyly regular accounts. ideas sleep. depos | ||
19|ROMANIA|3|ular asymptotes are about the furious multipliers. express dependencies nag above the ironically ironic account | ||
20|SAUDI ARABIA|4|ts. silent requests haggle. closely express packages sleep across the blithely | ||
21|VIETNAM|2|hely enticingly express accounts. even, final | ||
22|RUSSIA|3| requests against the platelets use never according to the quickly regular pint | ||
23|UNITED KINGDOM|3|eans boost carefully special requests. accounts are. carefull | ||
24|UNITED STATES|1|y final packages. slow foxes cajole quickly. quickly silent platelets breach ironic accounts. unusual pinto be |
Oops, something went wrong.