forked from duckdb/duckdb
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
228 changed files
with
26,013 additions
and
6,719 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
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
13 changes: 13 additions & 0 deletions
13
benchmark/micro/join/join_order_optimizer_should_respect_limit.benchmark
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,13 @@ | ||
# name: benchmark/micro/join/join_order_optimizer_should_respect_limit.benchmark | ||
# description: If a constant value limit operator exists, is should have influence on the estimated cardinality | ||
# group: [join] | ||
|
||
name join limit | ||
group join | ||
|
||
load | ||
create table t_left as select (random() * 1000000000)::INT a from range(400000); | ||
create table t_right as select range b from range(1000000000); | ||
|
||
run | ||
select * from t_left, (select * from t_right limit 10000) where a = b; |
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,14 @@ | ||
# name: benchmark/micro/string/inet_escape_function.benchmark | ||
# description: inet's extension escape function benchmark | ||
# group: [string] | ||
|
||
name html_escape benchmark | ||
group string | ||
|
||
require inet | ||
|
||
load | ||
CREATE TABLE html_text_tbl AS SELECT repeat('&', i%10) html_text FROM range(1000000) t(i); | ||
|
||
run | ||
SELECT html_escape(html_text) FROM html_text_tbl; |
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,16 @@ | ||
# name: benchmark/micro/string/inet_unescape_charrefs.benchmark | ||
# description: inet's extension unescape function benchmark | ||
# group: [string] | ||
|
||
name html_unescape benchmark for character references | ||
group string | ||
require inet | ||
|
||
load | ||
CREATE TABLE charrefs AS SELECT * FROM (VALUES ('&'), ('∷'), ('∳'), ('&;'), ('≷'), ('⇆'), ('↓'), ('not ¬in'), ('";'), ('&no charref')); | ||
INSERT INTO charrefs SELECT repeat('⪰̸', i%10) charref FROM range(1000) t(i); | ||
INSERT INTO charrefs SELECT repeat('𝔷', i%10) charref FROM range(1000) t(i); | ||
INSERT INTO charrefs SELECT repeat('É', i%7) html_text FROM range(997990) t(i); | ||
|
||
run | ||
SELECT html_unescape(charrefs.col0) FROM charrefs; |
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,13 @@ | ||
# name: benchmark/micro/string/inet_unescape_codepoints.benchmark | ||
# description: inet's extension unescape function benchmark | ||
# group: [string] | ||
|
||
name html_unescape benchmark with hexadecimal values | ||
group string | ||
require inet | ||
|
||
load | ||
CREATE TABLE html_hex_tbl AS SELECT format('&#x{:x}', i) html_text FROM range(1000000) t(i); | ||
|
||
run | ||
SELECT html_unescape(html_text) FROM html_hex_tbl; |
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,12 @@ | ||
# name: benchmark/tpch/aggregate/top_n_in_group_agg.benchmark | ||
# group: [aggregate] | ||
|
||
require tpch | ||
|
||
cache tpch_sf5.duckdb | ||
|
||
load | ||
CALL dbgen(sf=5); | ||
|
||
run | ||
SELECT max(l_extendedprice, 3) FROM lineitem GROUP BY l_suppkey ORDER BY ALL; |
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,19 @@ | ||
# name: benchmark/tpch/aggregate/top_n_in_group_window.benchmark | ||
# group: [aggregate] | ||
|
||
require tpch | ||
|
||
cache tpch_sf5.duckdb | ||
|
||
load | ||
CALL dbgen(sf=5); | ||
|
||
run | ||
SELECT rs.grp, array_agg(rs.val ORDER BY rid) | ||
FROM ( | ||
SELECT l_suppkey AS grp, l_extendedprice AS val, row_number() OVER (PARTITION BY l_suppkey ORDER BY l_extendedprice DESC) as rid | ||
FROM lineitem ORDER BY l_suppkey DESC | ||
) as rs | ||
WHERE rid <= 3 | ||
GROUP BY ALL | ||
ORDER BY ALL; |
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,21 @@ | ||
# name: benchmark/tpch/join/join_filter_pushdown.benchmark | ||
# description: Join filter pushdown | ||
# group: [join] | ||
|
||
name Join Filter Pushdown | ||
group join | ||
subgroup tpch | ||
|
||
require tpch | ||
|
||
cache tpch_sf1.duckdb | ||
|
||
load | ||
CALL dbgen(sf=1); | ||
|
||
run | ||
SELECT * from lineitem WHERE l_orderkey=(SELECT MAX(l_orderkey) FROM lineitem) ORDER BY ALL | ||
|
||
result IIIIIIIIIIIIIIII | ||
6000000 32255 2256 1 5.00 5936.25 0.04 0.03 N O 1996-11-02 1996-11-19 1996-12-01 TAKE BACK RETURN MAIL riously pe | ||
6000000 96127 6128 2 28.00 31447.36 0.01 0.02 N O 1996-09-22 1996-10-01 1996-10-21 NONE AIR pecial excuses nag evenly f |
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,21 @@ | ||
# name: benchmark/tpch/join/partition_pushdown.benchmark | ||
# description: Join filter pushdown into hive partitions | ||
# group: [join] | ||
|
||
name Hive Filter Join Filter Pushdown | ||
group join | ||
subgroup tpch | ||
|
||
require parquet | ||
|
||
require tpch | ||
|
||
load | ||
CALL dbgen(sf=1); | ||
COPY (FROM lineitem ORDER BY l_shipdate) TO 'lineitem_partitioned_shipdate' (FORMAT PARQUET, PARTITION_BY l_shipdate); | ||
|
||
run | ||
SELECT COUNT(*) from 'lineitem_partitioned_shipdate/**/*.parquet' WHERE l_shipdate=(SELECT MAX(l_shipdate) FROM lineitem) | ||
|
||
result I | ||
18 |
Oops, something went wrong.