forked from duckdb/duckdb
-
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 branch 'main' into validity-array
- Loading branch information
Showing
245 changed files
with
10,641 additions
and
1,351 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
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,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.