should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
# name: benchmark/tpch/upsert/bulk_upsert_empty_table.benchmark
# description: Bulk upsert on an empty table
# group: [upsert]
argument sf 1
require tpch
load
CALL dbgen(sf=${sf});
CREATE TABLE target_lineitem AS FROM lineitem LIMIT 0;
ALTER TABLE target_lineitem
ADD CONSTRAINT lineitem_pkey
PRIMARY KEY (L_ORDERKEY, L_LINENUMBER);
run
INSERT OR REPLACE INTO target_lineitem FROM lineitem
cleanup
DROP TABLE target_lineitem;
CREATE TABLE target_lineitem AS FROM lineitem LIMIT 0;
ALTER TABLE target_lineitem
ADD CONSTRAINT lineitem_pkey
PRIMARY KEY (L_ORDERKEY, L_LINENUMBER);
result_query IIIIIIIIIIIIIIII
SELECT * FROM target_lineitem EXCEPT FROM lineitem
----

View File

@@ -0,0 +1,28 @@
# name: benchmark/tpch/upsert/bulk_upsert_full_table.benchmark
# description: Bulk upsert on a full table
# group: [upsert]
argument sf 1
require tpch
load
CALL dbgen(sf=${sf});
CREATE TABLE target_lineitem AS SELECT * REPLACE (0 AS l_partkey, 0 as l_suppkey) FROM lineitem;
ALTER TABLE target_lineitem
ADD CONSTRAINT lineitem_pkey
PRIMARY KEY (L_ORDERKEY, L_LINENUMBER);
run
INSERT OR REPLACE INTO target_lineitem FROM lineitem
cleanup
DROP TABLE target_lineitem;
CREATE TABLE target_lineitem AS SELECT * REPLACE (0 AS l_partkey, 0 as l_suppkey) FROM lineitem;
ALTER TABLE target_lineitem
ADD CONSTRAINT lineitem_pkey
PRIMARY KEY (L_ORDERKEY, L_LINENUMBER);
result_query IIIIIIIIIIIIIIII
SELECT * FROM target_lineitem EXCEPT FROM lineitem
----

View File

@@ -0,0 +1,28 @@
# name: benchmark/tpch/upsert/tiny_insert_full_table.benchmark
# description: Bulk upsert on a full table
# group: [upsert]
argument sf 1
require tpch
load
CALL dbgen(sf=${sf});
CREATE TABLE target_lineitem AS FROM lineitem;
ALTER TABLE target_lineitem
ADD CONSTRAINT lineitem_pkey
PRIMARY KEY (L_ORDERKEY, L_LINENUMBER);
run
INSERT OR REPLACE INTO target_lineitem FROM lineitem LIMIT 5
cleanup
DROP TABLE target_lineitem;
CREATE TABLE target_lineitem AS FROM lineitem;
ALTER TABLE target_lineitem
ADD CONSTRAINT lineitem_pkey
PRIMARY KEY (L_ORDERKEY, L_LINENUMBER);
result_query IIIIIIIIIIIIIIII
SELECT * FROM target_lineitem EXCEPT FROM lineitem
----