-
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.
Merge branch 'main' into chore/switch-e2e-sql-backend
- Loading branch information
Showing
128 changed files
with
2,900 additions
and
1,281 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
control substitution on | ||
|
||
system ok | ||
rpk topic create test-topic-18308 | ||
|
||
statement ok | ||
CREATE SOURCE kafkasource ( | ||
id int, | ||
name string, | ||
) | ||
WITH ( | ||
${RISEDEV_KAFKA_WITH_OPTIONS_COMMON}, | ||
topic = 'test-topic-18308', | ||
scan.startup.mode = 'earliest' | ||
) FORMAT PLAIN ENCODE JSON; | ||
|
||
statement ok | ||
CREATE TABLE compact_table ( | ||
id int, | ||
name varchar, | ||
PRIMARY KEY (id) | ||
); | ||
|
||
statement ok | ||
CREATE SINK table_sink INTO compact_table AS SELECT * FROM kafkasource; | ||
|
||
system ok | ||
echo '{ "id": 1, "name": "xxchan" }' | rpk topic produce test-topic-18308 | ||
|
||
sleep 5s | ||
|
||
statement ok | ||
flush; | ||
|
||
query IT | ||
SELECT * FROM compact_table; | ||
---- | ||
1 xxchan | ||
|
||
statement ok | ||
DROP SINK table_sink; | ||
|
||
statement ok | ||
DROP TABLE compact_table; | ||
|
||
statement ok | ||
DROP SOURCE kafkasource; | ||
|
||
system ok | ||
rpk topic delete test-topic-18308 |
Oops, something went wrong.