Skip to content

Commit e7a8727

Browse files
committed
docs: align optional city example with schema
1 parent 1b0e878 commit e7a8727

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/cn/guides/20-self-hosted/04-references/http-streaming-load.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ docker logs -f databend-streaming-load
164164

165165
### 步骤 2:建库建表
166166

167+
建一张带 `city` 列的表(在后面的可选步骤里会用到):
168+
167169
```shell
168170
curl -sS -u databend:databend \
169171
-H 'Content-Type: application/json' \
@@ -172,7 +174,7 @@ curl -sS -u databend:databend \
172174

173175
curl -sS -u databend:databend \
174176
-H 'Content-Type: application/json' \
175-
-d '{"sql":"create or replace table demo.people (id int, name string, age int)"}' \
177+
-d '{"sql":"create or replace table demo.people (id int, name string, age int, city string)"}' \
176178
http://localhost:8000/v1/query/ >/dev/null
177179
```
178180

docs/en/guides/20-self-hosted/04-references/http-streaming-load.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ docker logs -f databend-streaming-load
170170

171171
### Step 2. Create a Table
172172

173+
Create a table with an extra `city` column (used later in the optional step):
174+
173175
```shell
174176
curl -sS -u databend:databend \
175177
-H 'Content-Type: application/json' \
@@ -178,7 +180,7 @@ curl -sS -u databend:databend \
178180

179181
curl -sS -u databend:databend \
180182
-H 'Content-Type: application/json' \
181-
-d '{"sql":"create or replace table demo.people (id int, name string, age int)"}' \
183+
-d '{"sql":"create or replace table demo.people (id int, name string, age int, city string)"}' \
182184
http://localhost:8000/v1/query/ >/dev/null
183185
```
184186

0 commit comments

Comments
 (0)