-
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.
Merge branch 'main' into yiming/recreate-shared-context
Showing
269 changed files
with
3,836 additions
and
3,793 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
statement ok | ||
create table t(a int, b int, c varchar, primary key(a,b)); | ||
|
||
query TTTT | ||
select conname, contype, conkey from pg_constraint where conname='t_pkey'; | ||
---- | ||
t_pkey p {1,2} | ||
|
||
statement ok | ||
drop table t; |
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
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
Oops, something went wrong.