should be it
This commit is contained in:
14
external/duckdb/test/fuzzer/public/cast_index_expression.test
vendored
Normal file
14
external/duckdb/test/fuzzer/public/cast_index_expression.test
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# name: test/fuzzer/public/cast_index_expression.test
|
||||
# description: Test CREATE INDEX using an index expression that triggers a cast
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TABLE v00 (c01 INT, c02 STRING);
|
||||
|
||||
statement error
|
||||
CREATE INDEX i_index ON v00 USING ART ( NULLIF ( v00, 'string' ) );
|
||||
----
|
||||
Invalid type for index key
|
||||
20
external/duckdb/test/fuzzer/public/columns_using.test
vendored
Normal file
20
external/duckdb/test/fuzzer/public/columns_using.test
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
# name: test/fuzzer/public/columns_using.test
|
||||
# description: Test COLUMNS regex in combination with the USING clause for a FULL join
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TABLE v00 (c01 INT);
|
||||
|
||||
statement error
|
||||
SELECT COLUMNS('v00')
|
||||
FROM v00 AS t1 FULL JOIN v00 AS t2 USING (c01) ;
|
||||
----
|
||||
No matching columns found
|
||||
|
||||
query I
|
||||
SELECT COLUMNS('c01')
|
||||
FROM v00 AS t1 FULL JOIN v00 AS t2 USING (c01) ;
|
||||
----
|
||||
14
external/duckdb/test/fuzzer/public/distinct_on_non_integer_literal.test
vendored
Normal file
14
external/duckdb/test/fuzzer/public/distinct_on_non_integer_literal.test
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# name: test/fuzzer/public/distinct_on_non_integer_literal.test
|
||||
# description: Test DISTINCT ON non-integer literal
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
SET order_by_non_integer_literal=true;
|
||||
|
||||
query I
|
||||
SELECT DISTINCT ON ('string') 'x' AS c02;
|
||||
----
|
||||
x
|
||||
16
external/duckdb/test/fuzzer/public/duplicate_alias_using.test
vendored
Normal file
16
external/duckdb/test/fuzzer/public/duplicate_alias_using.test
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# name: test/fuzzer/public/duplicate_alias_using.test
|
||||
# description: Duplicate alias in USING
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TABLE t1 (c1 INT);
|
||||
|
||||
statement error
|
||||
SELECT c1
|
||||
FROM t1 AS same_alias JOIN t1 AS same_alias2 USING (c1),
|
||||
t1 AS same_alias JOIN t1 AS same_alias2 USING (c1);
|
||||
----
|
||||
Ambiguous
|
||||
22
external/duckdb/test/fuzzer/public/enum_empty_type.test
vendored
Normal file
22
external/duckdb/test/fuzzer/public/enum_empty_type.test
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# name: test/fuzzer/public/enum_empty_type.test
|
||||
# description: Test creating an enum with empty strings
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TYPE c AS ENUM('');
|
||||
|
||||
statement error
|
||||
CREATE TYPE c AS ENUM('', '');
|
||||
----
|
||||
Invalid Input Error: Attempted to create ENUM type with duplicate value
|
||||
|
||||
statement error
|
||||
CREATE TYPE f AS M();
|
||||
----
|
||||
Catalog Error: Type with name M does not exist!
|
||||
|
||||
statement ok
|
||||
SELECT * FROM(VALUES(''::text))
|
||||
14
external/duckdb/test/fuzzer/public/insert_by_name_default.test
vendored
Normal file
14
external/duckdb/test/fuzzer/public/insert_by_name_default.test
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# name: test/fuzzer/public/insert_by_name_default.test
|
||||
# description: Insert by name + default values
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TABLE t0(i INT)
|
||||
|
||||
statement error
|
||||
INSERT INTO t0 BY NAME DEFAULT VALUES;
|
||||
----
|
||||
INSERT BY NAME cannot be combined with with DEFAULT VALUES
|
||||
41
external/duckdb/test/fuzzer/public/insert_or_replace_default_values.test
vendored
Normal file
41
external/duckdb/test/fuzzer/public/insert_or_replace_default_values.test
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
# name: test/fuzzer/public/insert_or_replace_default_values.test
|
||||
# description: Test INSERT OR REPLACE with DEFAULT VALUES
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE SEQUENCE seq
|
||||
|
||||
statement ok
|
||||
CREATE TABLE tbl(id INTEGER PRIMARY KEY DEFAULT 1, payload INTEGER DEFAULT nextval('seq'));
|
||||
|
||||
statement ok
|
||||
INSERT OR REPLACE INTO tbl DEFAULT VALUES;
|
||||
|
||||
query II
|
||||
FROM tbl
|
||||
----
|
||||
1 1
|
||||
|
||||
statement ok
|
||||
INSERT OR REPLACE INTO tbl DEFAULT VALUES;
|
||||
|
||||
query II
|
||||
FROM tbl
|
||||
----
|
||||
1 2
|
||||
|
||||
statement ok
|
||||
INSERT OR IGNORE INTO tbl DEFAULT VALUES;
|
||||
|
||||
query II
|
||||
FROM tbl
|
||||
----
|
||||
1 2
|
||||
|
||||
statement error
|
||||
INSERT INTO tbl DEFAULT VALUES;
|
||||
----
|
||||
constraint
|
||||
17
external/duckdb/test/fuzzer/public/insert_returning.test
vendored
Normal file
17
external/duckdb/test/fuzzer/public/insert_returning.test
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# name: test/fuzzer/public/insert_returning.test
|
||||
# description: Test INSERT OR REPLACE with DEFAULT VALUES
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TABLE v00 (c01 INT, c02 STRING);
|
||||
|
||||
statement ok
|
||||
INSERT INTO v00 (c01, c02) VALUES (0, 'abc');
|
||||
|
||||
query I
|
||||
INSERT INTO v00 FROM v00 ORDER BY ALL DESC RETURNING 'abc';
|
||||
----
|
||||
abc
|
||||
28
external/duckdb/test/fuzzer/public/lateral_in_right_side_of_join.test
vendored
Normal file
28
external/duckdb/test/fuzzer/public/lateral_in_right_side_of_join.test
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
# name: test/fuzzer/public/lateral_in_right_side_of_join.test
|
||||
# description: Lateral correlation in right side of join
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TABLE t0(c0 INT , c1 VARCHAR);
|
||||
|
||||
statement ok
|
||||
CREATE TABLE t1( c1 INT);
|
||||
|
||||
statement ok
|
||||
INSERT INTO t0 VALUES(4, 3);
|
||||
|
||||
statement ok
|
||||
INSERT INTO t1 VALUES(2);
|
||||
|
||||
query IIII
|
||||
SELECT * FROM t1, t0 JOIN LATERAL (SELECT t1.c1 AS col0) _subq ON true;
|
||||
----
|
||||
2 4 3 2
|
||||
|
||||
query IIII
|
||||
SELECT * FROM t1, t0 INNER JOIN (SELECT t1.c1 AS col0) ON true;
|
||||
----
|
||||
2 4 3 2
|
||||
17
external/duckdb/test/fuzzer/public/lateral_join_subquery.test
vendored
Normal file
17
external/duckdb/test/fuzzer/public/lateral_join_subquery.test
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# name: test/fuzzer/public/lateral_join_subquery.test
|
||||
# description: Subqueries in the join condition of lateral joins
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TABLE t1 (c1 INT);
|
||||
|
||||
statement error
|
||||
FROM t1 INNER JOIN (SELECT t1.c1) ON (SELECT 42);
|
||||
----
|
||||
Subqueries are not supported in LATERAL join conditions
|
||||
|
||||
statement ok
|
||||
SELECT c01 from values('string') as _(c01), LATERAL ( WITH ta02 AS MATERIALIZED ( SELECT 'string' ) ( SELECT 'string' ) INTERSECT ALL ( SELECT 'string' ) );
|
||||
22
external/duckdb/test/fuzzer/public/lateral_right_join.test
vendored
Normal file
22
external/duckdb/test/fuzzer/public/lateral_right_join.test
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# name: test/fuzzer/public/lateral_right_join.test
|
||||
# description: Lateral join followed by a right join
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TABLE tbl (c01 INT, c02 VARCHAR);
|
||||
|
||||
statement ok
|
||||
INSERT INTO tbl (c01, c02) VALUES (0, 'abc');
|
||||
|
||||
query IIIIII
|
||||
SELECT * FROM tbl, LATERAL (SELECT tbl.c01 AS lat_c01) AS subq CROSS JOIN tbl AS t1 RIGHT JOIN tbl AS t2 USING (c02);
|
||||
----
|
||||
0 abc 0 0 abc 0
|
||||
|
||||
query IIIII
|
||||
SELECT * FROM tbl, LATERAL (SELECT tbl.c01 AS lat_c01) AS subq CROSS JOIN tbl AS t1 RIGHT JOIN tbl AS t2 USING (c02, c01);
|
||||
----
|
||||
0 abc 0 0 abc
|
||||
14
external/duckdb/test/fuzzer/public/pivot_empty_enum.test
vendored
Normal file
14
external/duckdb/test/fuzzer/public/pivot_empty_enum.test
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# name: test/fuzzer/public/pivot_empty_enum.test
|
||||
# description: Test pivot with an empty enum
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TABLE t1 (c01 INT);
|
||||
|
||||
statement error
|
||||
PIVOT_WIDER t1 ON c01 IN ENUM;
|
||||
----
|
||||
Binder Error: ENUM type is incomplete
|
||||
16
external/duckdb/test/fuzzer/public/pivot_full_join_using.test
vendored
Normal file
16
external/duckdb/test/fuzzer/public/pivot_full_join_using.test
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# name: test/fuzzer/public/pivot_full_join_using.test
|
||||
# description: Test pivoting on a USING column that comes from a FULL JOIN
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TABLE t1 (c01 INT, c02 INT);
|
||||
|
||||
statement ok
|
||||
CREATE TABLE t2 (c01 INT, c03 INT);
|
||||
|
||||
query II
|
||||
PIVOT t1 FULL JOIN t2 USING ( c01 ) ON c01;
|
||||
----
|
||||
15
external/duckdb/test/fuzzer/public/positional_join_correlated_subquery.test
vendored
Normal file
15
external/duckdb/test/fuzzer/public/positional_join_correlated_subquery.test
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# name: test/fuzzer/public/positional_join_correlated_subquery.test
|
||||
# description: Test positional join in correlated subqueries
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TABLE v00 (c01 INT, c02 STRING);
|
||||
|
||||
statement error
|
||||
SELECT (SELECT 42 FROM (SELECT c01) POSITIONAL JOIN (SELECT c02))
|
||||
FROM v00;
|
||||
----
|
||||
not (yet) supported
|
||||
11
external/duckdb/test/fuzzer/public/pragma_named_parameters.test
vendored
Normal file
11
external/duckdb/test/fuzzer/public/pragma_named_parameters.test
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# name: test/fuzzer/public/pragma_named_parameters.test
|
||||
# description: Test pragma with named parameter that should throw normal exception
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement error
|
||||
PRAGMA e=r=0,0;
|
||||
----
|
||||
Parser Error: PRAGMA statement with assignment cannot have named parameters
|
||||
13
external/duckdb/test/fuzzer/public/regex_range_filter_mismatch.test
vendored
Normal file
13
external/duckdb/test/fuzzer/public/regex_range_filter_mismatch.test
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# name: test/fuzzer/public/regex_range_filter_mismatch.test
|
||||
# description: Type mismatch in regex range filter optimizer
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TABLE v00 ( c01 INTEGER ) ;
|
||||
|
||||
query I
|
||||
SELECT * FROM v00 WHERE concat(c01 IS NOT NULL, 'string') SIMILAR TO 'string';
|
||||
----
|
||||
21
external/duckdb/test/fuzzer/public/semi_anti_join_using.test
vendored
Normal file
21
external/duckdb/test/fuzzer/public/semi_anti_join_using.test
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
# name: test/fuzzer/public/semi_anti_join_using.test
|
||||
# description: Test semi/anti join in combination with USING columns
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TABLE v00 (c01 INT);
|
||||
|
||||
statement ok
|
||||
INSERT INTO v00 VALUES (42);
|
||||
|
||||
query I
|
||||
SELECT c01 FROM ( v00 AS ta03 SEMI JOIN ( v00 AS ta04 JOIN v00 AS ta05 USING ( c01 ) ) ON 42 ) ;
|
||||
----
|
||||
42
|
||||
|
||||
query I
|
||||
SELECT c01 FROM ( v00 AS ta03 ANTI JOIN ( v00 AS ta04 JOIN v00 AS ta05 USING ( c01 ) ) ON 42 ) ;
|
||||
----
|
||||
33
external/duckdb/test/fuzzer/public/semi_join_using.test
vendored
Normal file
33
external/duckdb/test/fuzzer/public/semi_join_using.test
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
# name: test/fuzzer/public/semi_join_using.test
|
||||
# description: Test SEMI JOIN with USING clause
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TABLE v00 (c01 INT, c02 STRING);
|
||||
|
||||
statement error
|
||||
SELECT c02
|
||||
FROM (
|
||||
v00 AS t1
|
||||
NATURAL JOIN
|
||||
v00 AS t2 ),
|
||||
( v00 AS ta04
|
||||
SEMI JOIN v00 AS ta05
|
||||
USING ( c02 ) ) ;
|
||||
----
|
||||
Ambiguous column reference
|
||||
|
||||
|
||||
query III
|
||||
SELECT t1.c02, t2.c02, ta04.c02
|
||||
FROM (
|
||||
v00 AS t1
|
||||
NATURAL JOIN
|
||||
v00 AS t2 ),
|
||||
( v00 AS ta04
|
||||
SEMI JOIN v00 AS ta05
|
||||
USING ( c02 ) ) ;
|
||||
----
|
||||
9
external/duckdb/test/fuzzer/public/unpivot_partial_values.test
vendored
Normal file
9
external/duckdb/test/fuzzer/public/unpivot_partial_values.test
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
# name: test/fuzzer/public/unpivot_partial_values.test
|
||||
# description: Test UNPIVOT on a row that contains a mix of expressions and values
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
FROM (SELECT 42 c1) AS ta06 UNPIVOT (c1 FOR 'v' IN ( ( c1, 'a' || 'b' ) ) ) ;
|
||||
20
external/duckdb/test/fuzzer/public/unsatisfiable_filter_prune.test
vendored
Normal file
20
external/duckdb/test/fuzzer/public/unsatisfiable_filter_prune.test
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
# name: test/fuzzer/public/unsatisfiable_filter_prune.test
|
||||
# description: Test SEMI JOIN with USING clause
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TABLE t0(c0 INT, c1 INT);
|
||||
|
||||
statement ok
|
||||
INSERT INTO t0( c0, c1) VALUES ( -1, -1);
|
||||
|
||||
query I
|
||||
SELECT c0 FROM t0 WHERE (((CASE t0.c0 WHEN t0.c0 THEN t0.c0 END ) BETWEEN 1 AND t0.c0)AND(t0.c0 <= 0)) ;
|
||||
----
|
||||
|
||||
query II
|
||||
SELECT * FROM t0 WHERE c0 >= 1 AND c0 <= t0.c1 AND t0.c1 <= 0;
|
||||
----
|
||||
14
external/duckdb/test/fuzzer/public/window_subquery_error.test
vendored
Normal file
14
external/duckdb/test/fuzzer/public/window_subquery_error.test
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# name: test/fuzzer/public/window_subquery_error.test
|
||||
# description: Test window function with a subquery that generates an error message
|
||||
# group: [public]
|
||||
|
||||
statement ok
|
||||
pragma enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE TABLE v00 (c01 INT, c02 STRING);
|
||||
|
||||
statement error
|
||||
SELECT 'string' IN ( SELECT string_agg ('str') OVER ( PARTITION BY c02 + 'string' IN ( SELECT 'string' )) );
|
||||
----
|
||||
correlated columns in window functions not supported
|
||||
Reference in New Issue
Block a user