forked from risingwavelabs/risingwave
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ban types when creating sink (risingwavelabs#9008)
Signed-off-by: tabVersion <tabvision@bupt.icu>
- Loading branch information
1 parent
4c0a0b4
commit b19e651
Showing
3 changed files
with
63 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
statement ok | ||
create table t5 (v1 smallint primary key, v2 int, v3 bigint, v4 float, v5 double, v6 decimal, v7 varchar, v8 timestamp, v9 boolean); | ||
|
||
statement ok | ||
create sink s from t5 with ( | ||
connector = 'jdbc', | ||
jdbc.url='jdbc:postgresql://db:5432/test?user=test&password=connector', | ||
table.name = 't5', | ||
type = 'upsert' | ||
); | ||
|
||
statement ok | ||
drop sink s; | ||
|
||
statement ok | ||
drop table t5; | ||
|
||
statement ok | ||
create table t6 (v1 smallint primary key, v2 int, v3 bigint, v4 float, v5 double, v6 decimal, v7 varchar, v8 timestamp, v9 boolean, v10 date, v11 struct<v12 time, v13 timestamptz>, v14 varchar[]); | ||
|
||
statement error | ||
create sink s from t6 with ( | ||
connector = 'jdbc', | ||
jdbc.url='jdbc:postgresql://db:5432/test?user=test&password=connector', | ||
table.name = 't6', | ||
type = 'upsert' | ||
); | ||
|
||
statement ok | ||
drop table t6; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters