-
Notifications
You must be signed in to change notification settings - Fork 589
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: move more Kafka tests to source_inline
- Loading branch information
Showing
6 changed files
with
88 additions
and
53 deletions.
There are no files selected for viewing
This file was deleted.
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
File renamed without changes.
21 changes: 18 additions & 3 deletions
21
...st/source/basic/temporary_kafka_batch.slt → ...ce_inline/kafka/temporary_kafka_batch.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
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,47 @@ | ||
control substitution on | ||
|
||
system ok | ||
rpk topic delete test_ttl_table_with_con || true | ||
|
||
system ok | ||
rpk topic create test_ttl_table_with_con -p 1 | ||
|
||
system ok | ||
cat <<EOF | rpk topic produce test_ttl_table_with_con -f "%v\n" | ||
{"v1": 1, "v2": "1"} | ||
{"v1": 2, "v2": "22"} | ||
{"v1": 3, "v2": "333"} | ||
{"v1": 4, "v2": "4444"} | ||
EOF | ||
|
||
statement ok | ||
create table t (v1 int, v2 varchar) APPEND ONLY with ( | ||
${RISEDEV_KAFKA_WITH_OPTIONS_COMMON}, | ||
topic = 'test_ttl_table_with_con', | ||
scan.startup.mode = 'earliest', | ||
retention_seconds = 5 | ||
) FORMAT PLAIN ENCODE JSON; | ||
|
||
statement ok | ||
flush; | ||
|
||
# Wait enough time to ensure SourceExecutor consumes all Kafka data. | ||
sleep 1s | ||
|
||
query IT rowsort | ||
select * from t | ||
---- | ||
1 1 | ||
2 22 | ||
3 333 | ||
4 4444 | ||
|
||
statement ok | ||
select pg_sleep(10); | ||
|
||
query I | ||
select * from t; | ||
---- | ||
|
||
statement ok | ||
drop table t; |
This file was deleted.
Oops, something went wrong.