-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(integration-test): increase the amount of data for mysql-cdc (#9904
- Loading branch information
Showing
11 changed files
with
50 additions
and
61 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
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 |
---|---|---|
@@ -1,8 +1,5 @@ | ||
CREATE MATERIALIZED VIEW product_count AS | ||
CREATE MATERIALIZED VIEW lineitem_count AS | ||
SELECT | ||
product_id, | ||
COUNT(*) as product_count | ||
COUNT(*) as cnt | ||
FROM | ||
orders | ||
GROUP BY | ||
product_id; | ||
lineitem_rw; |
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 |
---|---|---|
@@ -1,18 +1,28 @@ | ||
create table orders ( | ||
order_id int, | ||
order_date bigint, | ||
customer_name varchar, | ||
price decimal, | ||
product_id int, | ||
order_status smallint, | ||
PRIMARY KEY (order_id) | ||
) with ( | ||
CREATE TABLE lineitem_rw ( | ||
L_ORDERKEY BIGINT, | ||
L_PARTKEY BIGINT, | ||
L_SUPPKEY BIGINT, | ||
L_LINENUMBER BIGINT, | ||
L_QUANTITY DECIMAL, | ||
L_EXTENDEDPRICE DECIMAL, | ||
L_DISCOUNT DECIMAL, | ||
L_TAX DECIMAL, | ||
L_RETURNFLAG VARCHAR, | ||
L_LINESTATUS VARCHAR, | ||
L_SHIPDATE DATE, | ||
L_COMMITDATE DATE, | ||
L_RECEIPTDATE DATE, | ||
L_SHIPINSTRUCT VARCHAR, | ||
L_SHIPMODE VARCHAR, | ||
L_COMMENT VARCHAR, | ||
PRIMARY KEY(L_ORDERKEY, L_LINENUMBER) | ||
) WITH ( | ||
connector = 'mysql-cdc', | ||
hostname = 'mysql', | ||
port = '3306', | ||
username = 'root', | ||
password = '123456', | ||
database.name = 'mydb', | ||
table.name = 'orders', | ||
server.id = '1' | ||
table.name = 'lineitem', | ||
server.id = '2' | ||
); |
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 |
---|---|---|
@@ -1 +1 @@ | ||
orders,product_count | ||
lineitem_count |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
SELECT | ||
* | ||
FROM | ||
orders | ||
lineitem_count | ||
LIMIT | ||
10; |
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