Skip to content

Commit

Permalink
optimize e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
jw-itq committed Jan 9, 2025
1 parent 188cfe6 commit 412568e
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 347 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,6 @@ CREATE TABLE products (
weight FLOAT
);

drop table if exists orders;

CREATE TABLE orders (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
customer_id BIGINT NOT NULL,
order_date DATETIME NOT NULL,
total_amount DECIMAL ( 10, 2 ) NOT NULL,
STATUS VARCHAR ( 50 ) DEFAULT 'pending',
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);

drop table if exists customers;

CREATE TABLE customers (
id BIGINT PRIMARY KEY,
NAME VARCHAR ( 255 ) NOT NULL,
email VARCHAR ( 255 ) NOT NULL,
phone VARCHAR ( 50 ),
address TEXT,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);

drop table if exists mysql_cdc_e2e_sink_table_with_schema_change;
CREATE TABLE if not exists mysql_cdc_e2e_sink_table_with_schema_change (
id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY,
Expand Down Expand Up @@ -83,19 +59,6 @@ VALUES (101,"scooter","Small 2-wheel scooter",3.14),
(108,"jacket","water resistent black wind breaker",0.1),
(109,"spare tire","24 inch spare tire",22.2);

INSERT INTO orders ( id, customer_id, order_date, total_amount, STATUS )
VALUES
( 1, 1, '2024-01-01 10:00:00', 299.99, 'completed' ),
( 2, 2, '2024-01-02 11:00:00', 199.99, 'completed' ),
( 3, 3, '2024-01-03 12:00:00', 399.99, 'processing' );

INSERT INTO customers ( id, NAME, email, phone, address )
VALUES
( 1, 'John Doe', 'john@example.com', '123-456-7890', '123 Main St' ),
( 2, 'Jane Smith', 'jane@example.com', '234-567-8901', '456 Oak Ave' ),
( 3, 'Bob Johnson', 'bob@example.com', '345-678-9012', '789 Pine Rd' );


drop table if exists products_on_hand;
CREATE TABLE products_on_hand (
product_id INTEGER NOT NULL PRIMARY KEY,
Expand Down

This file was deleted.

Loading

0 comments on commit 412568e

Please sign in to comment.