-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support writing non-updating queries to debezium sinks. (#612)
* Support writing non-updating queries to debezium sinks. * bump arrow-json hash.
- Loading branch information
1 parent
fb72b3f
commit f1e785d
Showing
5 changed files
with
160 additions
and
13 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
100 changes: 100 additions & 0 deletions
100
crates/arroyo-sql-testing/golden_outputs/debezium_coercion.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{"after":{"counter":0},"before":null,"op":"c"} | ||
{"after":{"counter":1},"before":null,"op":"c"} | ||
{"after":{"counter":2},"before":null,"op":"c"} | ||
{"after":{"counter":3},"before":null,"op":"c"} | ||
{"after":{"counter":4},"before":null,"op":"c"} | ||
{"after":{"counter":5},"before":null,"op":"c"} | ||
{"after":{"counter":6},"before":null,"op":"c"} | ||
{"after":{"counter":7},"before":null,"op":"c"} | ||
{"after":{"counter":8},"before":null,"op":"c"} | ||
{"after":{"counter":9},"before":null,"op":"c"} | ||
{"after":{"counter":10},"before":null,"op":"c"} | ||
{"after":{"counter":11},"before":null,"op":"c"} | ||
{"after":{"counter":12},"before":null,"op":"c"} | ||
{"after":{"counter":13},"before":null,"op":"c"} | ||
{"after":{"counter":14},"before":null,"op":"c"} | ||
{"after":{"counter":15},"before":null,"op":"c"} | ||
{"after":{"counter":16},"before":null,"op":"c"} | ||
{"after":{"counter":17},"before":null,"op":"c"} | ||
{"after":{"counter":18},"before":null,"op":"c"} | ||
{"after":{"counter":19},"before":null,"op":"c"} | ||
{"after":{"counter":20},"before":null,"op":"c"} | ||
{"after":{"counter":21},"before":null,"op":"c"} | ||
{"after":{"counter":22},"before":null,"op":"c"} | ||
{"after":{"counter":23},"before":null,"op":"c"} | ||
{"after":{"counter":24},"before":null,"op":"c"} | ||
{"after":{"counter":25},"before":null,"op":"c"} | ||
{"after":{"counter":26},"before":null,"op":"c"} | ||
{"after":{"counter":27},"before":null,"op":"c"} | ||
{"after":{"counter":28},"before":null,"op":"c"} | ||
{"after":{"counter":29},"before":null,"op":"c"} | ||
{"after":{"counter":30},"before":null,"op":"c"} | ||
{"after":{"counter":31},"before":null,"op":"c"} | ||
{"after":{"counter":32},"before":null,"op":"c"} | ||
{"after":{"counter":33},"before":null,"op":"c"} | ||
{"after":{"counter":34},"before":null,"op":"c"} | ||
{"after":{"counter":35},"before":null,"op":"c"} | ||
{"after":{"counter":36},"before":null,"op":"c"} | ||
{"after":{"counter":37},"before":null,"op":"c"} | ||
{"after":{"counter":38},"before":null,"op":"c"} | ||
{"after":{"counter":39},"before":null,"op":"c"} | ||
{"after":{"counter":40},"before":null,"op":"c"} | ||
{"after":{"counter":41},"before":null,"op":"c"} | ||
{"after":{"counter":42},"before":null,"op":"c"} | ||
{"after":{"counter":43},"before":null,"op":"c"} | ||
{"after":{"counter":44},"before":null,"op":"c"} | ||
{"after":{"counter":45},"before":null,"op":"c"} | ||
{"after":{"counter":46},"before":null,"op":"c"} | ||
{"after":{"counter":47},"before":null,"op":"c"} | ||
{"after":{"counter":48},"before":null,"op":"c"} | ||
{"after":{"counter":49},"before":null,"op":"c"} | ||
{"after":{"counter":50},"before":null,"op":"c"} | ||
{"after":{"counter":51},"before":null,"op":"c"} | ||
{"after":{"counter":52},"before":null,"op":"c"} | ||
{"after":{"counter":53},"before":null,"op":"c"} | ||
{"after":{"counter":54},"before":null,"op":"c"} | ||
{"after":{"counter":55},"before":null,"op":"c"} | ||
{"after":{"counter":56},"before":null,"op":"c"} | ||
{"after":{"counter":57},"before":null,"op":"c"} | ||
{"after":{"counter":58},"before":null,"op":"c"} | ||
{"after":{"counter":59},"before":null,"op":"c"} | ||
{"after":{"counter":60},"before":null,"op":"c"} | ||
{"after":{"counter":61},"before":null,"op":"c"} | ||
{"after":{"counter":62},"before":null,"op":"c"} | ||
{"after":{"counter":63},"before":null,"op":"c"} | ||
{"after":{"counter":64},"before":null,"op":"c"} | ||
{"after":{"counter":65},"before":null,"op":"c"} | ||
{"after":{"counter":66},"before":null,"op":"c"} | ||
{"after":{"counter":67},"before":null,"op":"c"} | ||
{"after":{"counter":68},"before":null,"op":"c"} | ||
{"after":{"counter":69},"before":null,"op":"c"} | ||
{"after":{"counter":70},"before":null,"op":"c"} | ||
{"after":{"counter":71},"before":null,"op":"c"} | ||
{"after":{"counter":72},"before":null,"op":"c"} | ||
{"after":{"counter":73},"before":null,"op":"c"} | ||
{"after":{"counter":74},"before":null,"op":"c"} | ||
{"after":{"counter":75},"before":null,"op":"c"} | ||
{"after":{"counter":76},"before":null,"op":"c"} | ||
{"after":{"counter":77},"before":null,"op":"c"} | ||
{"after":{"counter":78},"before":null,"op":"c"} | ||
{"after":{"counter":79},"before":null,"op":"c"} | ||
{"after":{"counter":80},"before":null,"op":"c"} | ||
{"after":{"counter":81},"before":null,"op":"c"} | ||
{"after":{"counter":82},"before":null,"op":"c"} | ||
{"after":{"counter":83},"before":null,"op":"c"} | ||
{"after":{"counter":84},"before":null,"op":"c"} | ||
{"after":{"counter":85},"before":null,"op":"c"} | ||
{"after":{"counter":86},"before":null,"op":"c"} | ||
{"after":{"counter":87},"before":null,"op":"c"} | ||
{"after":{"counter":88},"before":null,"op":"c"} | ||
{"after":{"counter":89},"before":null,"op":"c"} | ||
{"after":{"counter":90},"before":null,"op":"c"} | ||
{"after":{"counter":91},"before":null,"op":"c"} | ||
{"after":{"counter":92},"before":null,"op":"c"} | ||
{"after":{"counter":93},"before":null,"op":"c"} | ||
{"after":{"counter":94},"before":null,"op":"c"} | ||
{"after":{"counter":95},"before":null,"op":"c"} | ||
{"after":{"counter":96},"before":null,"op":"c"} | ||
{"after":{"counter":97},"before":null,"op":"c"} | ||
{"after":{"counter":98},"before":null,"op":"c"} | ||
{"after":{"counter":99},"before":null,"op":"c"} |
24 changes: 24 additions & 0 deletions
24
crates/arroyo-sql-testing/src/test/queries/debezium_coercion.sql
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,24 @@ | ||
CREATE TABLE impulse_source | ||
( | ||
timestamp TIMESTAMP, | ||
counter bigint unsigned not null, | ||
subtask_index bigint unsigned not null | ||
) WITH ( | ||
connector = 'single_file', | ||
path = '$input_dir/impulse.json', | ||
format = 'json', | ||
type = 'source' | ||
); | ||
CREATE TABLE output | ||
( | ||
counter bigint | ||
) WITH ( | ||
connector = 'single_file', | ||
path = '$output_path', | ||
format = 'debezium_json', | ||
type = 'sink' | ||
); | ||
|
||
INSERT INTO output | ||
SELECT counter | ||
FROM impulse_source; |