From 331bd4e94b247df1175c458003ac4cf60dcc6fd7 Mon Sep 17 00:00:00 2001 From: hjiang Date: Fri, 6 Dec 2024 10:56:08 +0000 Subject: [PATCH] Add unsupported type test case --- test/regression/expected/unsupported_types.out | 2 ++ test/regression/schedule | 1 + test/regression/sql/unsupported_types.sql | 1 + 3 files changed, 4 insertions(+) create mode 100644 test/regression/expected/unsupported_types.out create mode 100644 test/regression/sql/unsupported_types.sql diff --git a/test/regression/expected/unsupported_types.out b/test/regression/expected/unsupported_types.out new file mode 100644 index 00000000..9ba6c3f1 --- /dev/null +++ b/test/regression/expected/unsupported_types.out @@ -0,0 +1,2 @@ +CREATE TEMP TABLE numeric_tbl (a NUMERIC) USING duckdb; +ERROR: Unsupported type when creating column: type precision 40 with scale 5 is not supported by duckdb, which only allows maximum precision 38 diff --git a/test/regression/schedule b/test/regression/schedule index 62f6c5ce..393a297c 100644 --- a/test/regression/schedule +++ b/test/regression/schedule @@ -24,3 +24,4 @@ test: altered_tables test: transactions test: transaction_errors test: secrets +test: unsupported_types diff --git a/test/regression/sql/unsupported_types.sql b/test/regression/sql/unsupported_types.sql new file mode 100644 index 00000000..e71f0521 --- /dev/null +++ b/test/regression/sql/unsupported_types.sql @@ -0,0 +1 @@ +CREATE TEMP TABLE numeric_tbl (a NUMERIC) USING duckdb;