67 lines
1.1 KiB
Plaintext
67 lines
1.1 KiB
Plaintext
# 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.*
|