@@ -44,9 +44,11 @@ CREATE TABLE cube_demo.ecom.line_items
4444Clear all the content in the Editor and run the following command to load data
4545into the ` line_items ` table.
4646
47- COPY INTO cube_demo.ecom.line_items (id, order_id, product_id, price, created_at)
48- FROM 's3://cube-tutorial/line_items.csv'
49- FILE_FORMAT = (TYPE = 'CSV' FIELD_DELIMITER = ',' SKIP_HEADER = 1);
47+ ``` sql
48+ COPY INTO cube_demo .ecom .line_items (id, order_id, product_id, price, created_at)
49+ FROM ' s3://cube-tutorial/line_items.csv'
50+ FILE_FORMAT = (TYPE = ' CSV' FIELD_DELIMITER = ' ,' SKIP_HEADER = 1 );
51+ ```
5052
5153Now, we’re going to repeat these steps for three other tables.
5254
@@ -68,7 +70,6 @@ Run the following command to load data into the `orders` table from S3.
6870COPY INTO cube_demo .ecom .orders (id, user_id, status, completed_at, created_at)
6971FROM ' s3://cube-tutorial/orders.csv'
7072FILE_FORMAT = (TYPE = ' CSV' FIELD_DELIMITER = ' ,' SKIP_HEADER = 1 );
71-
7273```
7374
7475Run the following command to create the ` users ` table.
@@ -85,7 +86,6 @@ CREATE TABLE cube_demo.ecom.users
8586 last_name VARCHAR ,
8687 created_at TIMESTAMP
8788);
88-
8989```
9090
9191Run the following command to load data into the ` users ` table.
@@ -94,7 +94,6 @@ Run the following command to load data into the `users` table.
9494COPY INTO cube_demo .ecom .users (id, city, age, gender, state, first_name, last_name, created_at)
9595FROM ' s3://cube-tutorial/users.csv'
9696FILE_FORMAT = (TYPE = ' CSV' FIELD_DELIMITER = ' ,' SKIP_HEADER = 1 );
97-
9897```
9998
10099Run the following command to create the ` products ` table.
@@ -106,7 +105,6 @@ CREATE TABLE cube_demo.ecom.products
106105 product_category VARCHAR ,
107106 created_at TIMESTAMP
108107);
109-
110108```
111109
112110Run the following command to load data into the ` products ` table.
0 commit comments