-
Notifications
You must be signed in to change notification settings - Fork 590
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 kwannoel/test-rate-limit
- Loading branch information
Showing
418 changed files
with
10,731 additions
and
3,858 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# In older versions of RisingWave, invalid WITH options are accepted and persisted. | ||
# We use this test to ensure that existing sources with invalid options can still be used. | ||
|
||
statement ok | ||
CREATE SOURCE IF NOT EXISTS kafka_source_with_invalid_option | ||
( | ||
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', | ||
invalid_option='oops' | ||
) FORMAT PLAIN ENCODE JSON; | ||
|
||
statement ok | ||
CREATE MATERIALIZED VIEW kafka_mv1_with_invalid_option as SELECT * FROM kafka_source_with_invalid_option; |
12 changes: 12 additions & 0 deletions
12
backwards-compat-tests/slt/kafka/invalid_options/validate_original.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,12 @@ | ||
query I rowsort | ||
SELECT * FROM kafka_mv1_with_invalid_option; | ||
---- | ||
6786745ge 6 NULL NULL 3 NULL | ||
erwerhghj 4 NULL NULL 2 NULL | ||
fgbgfnyyy 7 NULL NULL 3 NULL | ||
fsdfgerrg 2 NULL NULL 1 NULL | ||
gtrgretrg 1 NULL NULL 1 NULL | ||
kiku7ikkk 5 NULL NULL 2 NULL | ||
sdfergtth 3 NULL NULL 1 NULL | ||
werwerwwe 8 NULL NULL 4 NULL | ||
yjtyjtyyy 9 NULL NULL 4 NULL |
51 changes: 51 additions & 0 deletions
51
backwards-compat-tests/slt/kafka/invalid_options/validate_restart.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,51 @@ | ||
# create a new mv on source, it should retrieve all records | ||
# and match mv1. | ||
statement ok | ||
CREATE MATERIALIZED VIEW kafka_mv2_with_invalid_option as SELECT * FROM kafka_source_with_invalid_option; | ||
|
||
sleep 5s | ||
|
||
query I rowsort | ||
SELECT * FROM kafka_mv2_with_invalid_option; | ||
---- | ||
6786745ge 6 NULL NULL 3 NULL | ||
6786745ge 6 NULL NULL 3 NULL | ||
erwerhghj 4 NULL NULL 2 NULL | ||
erwerhghj 4 NULL NULL 2 NULL | ||
fgbgfnyyy 7 NULL NULL 3 NULL | ||
fgbgfnyyy 7 NULL NULL 3 NULL | ||
fsdfgerrg 2 NULL NULL 1 NULL | ||
fsdfgerrg 2 NULL NULL 1 NULL | ||
gtrgretrg 1 NULL NULL 1 NULL | ||
gtrgretrg 1 NULL NULL 1 NULL | ||
kiku7ikkk 5 NULL NULL 2 NULL | ||
kiku7ikkk 5 NULL NULL 2 NULL | ||
sdfergtth 3 NULL NULL 1 NULL | ||
sdfergtth 3 NULL NULL 1 NULL | ||
werwerwwe 8 NULL NULL 4 NULL | ||
werwerwwe 8 NULL NULL 4 NULL | ||
yjtyjtyyy 9 NULL NULL 4 NULL | ||
yjtyjtyyy 9 NULL NULL 4 NULL | ||
|
||
# MV1 should also have new records | ||
query I rowsort | ||
SELECT * FROM kafka_mv1_with_invalid_option; | ||
---- | ||
6786745ge 6 NULL NULL 3 NULL | ||
6786745ge 6 NULL NULL 3 NULL | ||
erwerhghj 4 NULL NULL 2 NULL | ||
erwerhghj 4 NULL NULL 2 NULL | ||
fgbgfnyyy 7 NULL NULL 3 NULL | ||
fgbgfnyyy 7 NULL NULL 3 NULL | ||
fsdfgerrg 2 NULL NULL 1 NULL | ||
fsdfgerrg 2 NULL NULL 1 NULL | ||
gtrgretrg 1 NULL NULL 1 NULL | ||
gtrgretrg 1 NULL NULL 1 NULL | ||
kiku7ikkk 5 NULL NULL 2 NULL | ||
kiku7ikkk 5 NULL NULL 2 NULL | ||
sdfergtth 3 NULL NULL 1 NULL | ||
sdfergtth 3 NULL NULL 1 NULL | ||
werwerwwe 8 NULL NULL 4 NULL | ||
werwerwwe 8 NULL NULL 4 NULL | ||
yjtyjtyyy 9 NULL NULL 4 NULL | ||
yjtyjtyyy 9 NULL NULL 4 NULL |
Oops, something went wrong.