-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle upsert json in prev versions (#15226)
Signed-off-by: tabVersion <[email protected]>
- Loading branch information
1 parent
e19aaec
commit fcdeb3f
Showing
10 changed files
with
105 additions
and
23 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
16 changes: 16 additions & 0 deletions
16
backwards-compat-tests/slt/kafka/upsert/deprecate_upsert.slt
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,16 @@ | ||
statement ok | ||
CREATE TABLE IF NOT EXISTS kafka_table | ||
( | ||
action varchar, | ||
user_id integer, | ||
obj_id integer, | ||
name varchar, | ||
page_id integer, | ||
age integer | ||
) | ||
WITH ( | ||
connector='kafka', | ||
topic='backwards_compat_test_kafka_source', | ||
properties.bootstrap.server='localhost:29092', | ||
scan.startup.mode='earliest', | ||
) FORMAT UPSERT ENCODE JSON; |
18 changes: 18 additions & 0 deletions
18
backwards-compat-tests/slt/kafka/upsert/include_key_as.slt
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,18 @@ | ||
statement ok | ||
CREATE TABLE IF NOT EXISTS kafka_table | ||
( | ||
action varchar, | ||
user_id integer, | ||
obj_id integer, | ||
name varchar, | ||
page_id integer, | ||
age integer, | ||
primary key (_rw_key) | ||
) | ||
INCLUDE key as _rw_key | ||
WITH ( | ||
connector='kafka', | ||
topic='backwards_compat_test_kafka_source', | ||
properties.bootstrap.server='localhost:29092', | ||
scan.startup.mode='earliest', | ||
) FORMAT UPSERT ENCODE JSON; |
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
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
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
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