Skip to content

Commit e9d189a

Browse files
authored
docs: Fix code block
1 parent 1e29bb3 commit e9d189a

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docs/docs-new/pages/product/getting-started/cloud/load-data.mdx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ CREATE TABLE cube_demo.ecom.line_items
4444
Clear all the content in the Editor and run the following command to load data
4545
into 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

5153
Now, 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.
6870
COPY INTO cube_demo.ecom.orders (id, user_id, status, completed_at, created_at)
6971
FROM 's3://cube-tutorial/orders.csv'
7072
FILE_FORMAT = (TYPE = 'CSV' FIELD_DELIMITER = ',' SKIP_HEADER = 1);
71-
7273
```
7374

7475
Run 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

9191
Run 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.
9494
COPY INTO cube_demo.ecom.users (id, city, age, gender, state, first_name, last_name, created_at)
9595
FROM 's3://cube-tutorial/users.csv'
9696
FILE_FORMAT = (TYPE = 'CSV' FIELD_DELIMITER = ',' SKIP_HEADER = 1);
97-
9897
```
9998

10099
Run 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

112110
Run the following command to load data into the `products` table.

0 commit comments

Comments
 (0)