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,66 @@
# name: test/sql/tpcds/tpcds_options.test_slow
# description: Test TPC-DS data generation options
# group: [tpcds]
require tpcds
statement ok
CALL dsdgen(sf=0)
# tables already exist
statement error
CALL dsdgen(sf=0)
----
# overwrite should work
statement ok
CALL dsdgen(sf=0, overwrite=true)
# suffix
statement ok
CALL dsdgen(sf=0.01, suffix='_bla')
statement ok
SELECT COUNT(*) FROM call_center_bla
statement ok
create schema tpcds
statement ok
CALL dsdgen(sf=0.01, schema='tpcds')
statement ok
SELECT COUNT(*) FROM tpcds.call_center
statement ok
ATTACH DATABASE ':memory:' AS db1;
statement ok
CALL dsdgen(sf=0.01, catalog='db1');
statement ok
SELECT COUNT(*) FROM db1.call_center
statement ok
CREATE SCHEMA db1.test_schema
statement ok
CALL dsdgen(sf=0.01, catalog='db1', schema='test_schema');
statement ok
SELECT COUNT(*) FROM db1.test_schema.call_center
statement error
Call dsdgen(sf=NULL);
----
<REGEX>:.*Cannot use NULL.*
statement error
Call dsdgen(catalog=NULL);
----
<REGEX>:.*Cannot use NULL.*
statement error
Call dsdgen(sf=1, suffix=NULL);
----
<REGEX>:.*Cannot use NULL.*