-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
150 changed files
with
1,720 additions
and
721 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# https://github.com/risingwavelabs/risingwave/issues/15198 | ||
|
||
statement ok | ||
SET RW_IMPLICIT_FLUSH TO TRUE; | ||
|
||
statement ok | ||
create materialized view "tumble_with_offset" | ||
as ( | ||
with | ||
input as ( | ||
select 1 as id, TO_TIMESTAMP('2024-01-01 01:30:02', 'YYYY-MM-DD HH24:MI:SS') as timestamps | ||
) | ||
select * | ||
from tumble(input, timestamps, interval '1 DAY', '+6 HOURS') | ||
); | ||
|
||
query ITTT | ||
select * from tumble_with_offset; | ||
---- | ||
1 2024-01-01 01:30:02+00:00 2023-12-31 06:00:00+00:00 2024-01-01 06:00:00+00:00 | ||
|
||
statement ok | ||
drop materialized view tumble_with_offset; |
File renamed without changes.
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,44 @@ | ||
# This test will test that barrier latency does not spike | ||
# when there's rate limit on source. | ||
# The upstream side should backpressure the source reader, | ||
# but still allow barriers to flow through. | ||
|
||
statement ok | ||
SET STREAMING_PARALLELISM=2; | ||
|
||
statement ok | ||
SET STREAMING_RATE_LIMIT=1; | ||
|
||
statement ok | ||
CREATE TABLE source_table (i1 int) | ||
WITH ( | ||
connector = 'datagen', | ||
fields.i1.start = '1', | ||
fields.i1.end = '5', | ||
datagen.rows.per.second = '10000' | ||
) FORMAT PLAIN ENCODE JSON; | ||
|
||
statement ok | ||
CREATE SINK sink AS | ||
SELECT x.i1 as i1 FROM source_table x | ||
JOIN source_table s1 ON x.i1 = s1.i1 | ||
JOIN source_table s2 ON x.i1 = s2.i1 | ||
JOIN source_table s3 ON x.i1 = s3.i1 | ||
WITH (connector = 'blackhole'); | ||
|
||
# The following sequence of FLUSH should be fast, since barrier should be able to bypass sink. | ||
# Otherwise, these FLUSH will take a long time to complete, and trigger timeout. | ||
statement ok | ||
flush; | ||
|
||
statement ok | ||
flush; | ||
|
||
statement ok | ||
flush; | ||
|
||
statement ok | ||
drop sink sink; | ||
|
||
statement ok | ||
drop table source_table; |
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
Oops, something went wrong.