Skip to content

Commit 4aaa954

Browse files
shuiyisongnicecui
andauthored
fix: remove database description in pipeline table (#1995)
Signed-off-by: shuiyisong <[email protected]> Co-authored-by: Yiran <[email protected]>
1 parent 9b26225 commit 4aaa954

File tree

8 files changed

+20
-24
lines changed

8 files changed

+20
-24
lines changed

docs/reference/sql/greptime-private/pipelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The output is as follows:
3131
```
3232

3333
- `name`: The name of the pipeline;
34-
- `schema`: The schema of the pipeline;
34+
- `schema`: Deprecated. If you create the pipeline after `v0.15`, this field should be an empty string.
3535
- `content_type`: The type of the pipeline;
3636
- `pipeline`: The content of the pipeline;
3737
- `created_at`: The creation time of the pipeline;

docs/user-guide/logs/manage-pipelines.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,24 @@ Assuming you have prepared a pipeline configuration file `pipeline.yaml`, use th
2121

2222
```shell
2323
## Upload the pipeline file. 'test' is the name of the pipeline
24-
curl -X "POST" "http://localhost:4000/v1/events/pipelines/test?db=public" \
24+
curl -X "POST" "http://localhost:4000/v1/events/pipelines/test" \
2525
-H "Authorization: Basic {{authentication}}" \
2626
2727
```
2828

29-
The created Pipeline is associated with a database, which can be specified with the URL parameter `db`, defaulting to `public`.
30-
When writing log to a database, the Pipeline used must be under the same database as the table being written to.
29+
The created Pipeline is shared for all databases.
3130

3231
## Delete a Pipeline
3332

3433
You can use the following HTTP interface to delete a pipeline:
3534

3635
```shell
3736
## 'test' is the name of the pipeline
38-
curl -X "DELETE" "http://localhost:4000/v1/events/pipelines/test?db=public&version=2024-06-27%2012%3A02%3A34.257312110Z" \
37+
curl -X "DELETE" "http://localhost:4000/v1/events/pipelines/test?version=2024-06-27%2012%3A02%3A34.257312110Z" \
3938
-H "Authorization: Basic {{authentication}}"
4039
```
4140

42-
In the above example, we deleted a pipeline named `test` in `public` database. The `version` parameter is required to specify the version of the pipeline to be deleted.
41+
In the above example, we deleted a pipeline named `test`. The `version` parameter is required to specify the version of the pipeline to be deleted.
4342

4443
## Query Pipelines
4544

i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/greptime-private/pipelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ SELECT * FROM pipelines;
3131
```
3232

3333
- `name`: pipeline 名称;
34-
- `schema`: pipeline 对应的 schema;
34+
- `schema`: 已废弃。如果你在 `v0.15` 之后创建 pipeline,这个字段会是一个空字符串。
3535
- `content_type`: pipeline 的类型;
3636
- `pipeline`: pipeline 的具体内容;
3737
- `created_at`: pipeline 的创建时间;

i18n/zh/docusaurus-plugin-content-docs/current/user-guide/logs/manage-pipelines.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,24 @@ GreptimeDB 提供了专用的 HTTP 接口用于创建 Pipeline。
2222

2323
```shell
2424
## 上传 pipeline 文件。test 为 Pipeline 的名称
25-
curl -X "POST" "http://localhost:4000/v1/events/pipelines/test?db=public" \
25+
curl -X "POST" "http://localhost:4000/v1/events/pipelines/test" \
2626
-H "Authorization: Basic {{authentication}}" \
2727
2828
```
2929

30-
创建的 Pipeline 会关联到一个 database,可通过 URL 参数 `db` 来指定,默认为 `public`
31-
在将日志写入到数据库中时,所使用的 Pipeline 必须和写入的表在同一个 database 下。
30+
你可以在所有 Database 中使用创建的 Pipeline。
3231

3332
## 删除 Pipeline
3433

3534
可以使用以下 HTTP 接口删除 Pipeline:
3635

3736
```shell
3837
## test 为 Pipeline 的名称
39-
curl -X "DELETE" "http://localhost:4000/v1/events/pipelines/test?db=public&version=2024-06-27%2012%3A02%3A34.257312110Z" \
38+
curl -X "DELETE" "http://localhost:4000/v1/events/pipelines/test?version=2024-06-27%2012%3A02%3A34.257312110Z" \
4039
-H "Authorization: Basic {{authentication}}"
4140
```
4241

43-
上面的例子中,我们删除了一个在 `public` database 下名为 `test` 的 Pipeline。`version` 参数是必须的,用于指定要删除的 Pipeline 的版本号。
42+
上面的例子中,我们删除了名为 `test` 的 Pipeline。`version` 参数是必须的,用于指定要删除的 Pipeline 的版本号。
4443

4544
## 查询 Pipeline
4645

i18n/zh/docusaurus-plugin-content-docs/version-0.15/reference/sql/greptime-private/pipelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ SELECT * FROM pipelines;
3131
```
3232

3333
- `name`: pipeline 名称;
34-
- `schema`: pipeline 对应的 schema;
34+
- `schema`: 已废弃。如果你在 `v0.15` 之后创建 pipeline,这个字段会是一个空字符串。
3535
- `content_type`: pipeline 的类型;
3636
- `pipeline`: pipeline 的具体内容;
3737
- `created_at`: pipeline 的创建时间;

i18n/zh/docusaurus-plugin-content-docs/version-0.15/user-guide/logs/manage-pipelines.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,24 @@ GreptimeDB 提供了专用的 HTTP 接口用于创建 Pipeline。
2222

2323
```shell
2424
## 上传 pipeline 文件。test 为 Pipeline 的名称
25-
curl -X "POST" "http://localhost:4000/v1/events/pipelines/test?db=public" \
25+
curl -X "POST" "http://localhost:4000/v1/events/pipelines/test" \
2626
-H "Authorization: Basic {{authentication}}" \
2727
2828
```
2929

30-
创建的 Pipeline 会关联到一个 database,可通过 URL 参数 `db` 来指定,默认为 `public`
31-
在将日志写入到数据库中时,所使用的 Pipeline 必须和写入的表在同一个 database 下。
30+
你可以在所有 Database 中使用创建的 Pipeline。
3231

3332
## 删除 Pipeline
3433

3534
可以使用以下 HTTP 接口删除 Pipeline:
3635

3736
```shell
3837
## test 为 Pipeline 的名称
39-
curl -X "DELETE" "http://localhost:4000/v1/events/pipelines/test?db=public&version=2024-06-27%2012%3A02%3A34.257312110Z" \
38+
curl -X "DELETE" "http://localhost:4000/v1/events/pipelines/test?version=2024-06-27%2012%3A02%3A34.257312110Z" \
4039
-H "Authorization: Basic {{authentication}}"
4140
```
4241

43-
上面的例子中,我们删除了一个在 `public` database 下名为 `test` 的 Pipeline。`version` 参数是必须的,用于指定要删除的 Pipeline 的版本号。
42+
上面的例子中,我们删除了名为 `test` 的 Pipeline。`version` 参数是必须的,用于指定要删除的 Pipeline 的版本号。
4443

4544
## 查询 Pipeline
4645

versioned_docs/version-0.15/reference/sql/greptime-private/pipelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The output is as follows:
3131
```
3232

3333
- `name`: The name of the pipeline;
34-
- `schema`: The schema of the pipeline;
34+
- `schema`: Deprecated. If you create the pipeline after `v0.15`, this field should be an empty string.
3535
- `content_type`: The type of the pipeline;
3636
- `pipeline`: The content of the pipeline;
3737
- `created_at`: The creation time of the pipeline;

versioned_docs/version-0.15/user-guide/logs/manage-pipelines.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,24 @@ Assuming you have prepared a pipeline configuration file `pipeline.yaml`, use th
2121

2222
```shell
2323
## Upload the pipeline file. 'test' is the name of the pipeline
24-
curl -X "POST" "http://localhost:4000/v1/events/pipelines/test?db=public" \
24+
curl -X "POST" "http://localhost:4000/v1/events/pipelines/test" \
2525
-H "Authorization: Basic {{authentication}}" \
2626
2727
```
2828

29-
The created Pipeline is associated with a database, which can be specified with the URL parameter `db`, defaulting to `public`.
30-
When writing log to a database, the Pipeline used must be under the same database as the table being written to.
29+
The created Pipeline is shared for all databases.
3130

3231
## Delete a Pipeline
3332

3433
You can use the following HTTP interface to delete a pipeline:
3534

3635
```shell
3736
## 'test' is the name of the pipeline
38-
curl -X "DELETE" "http://localhost:4000/v1/events/pipelines/test?db=public&version=2024-06-27%2012%3A02%3A34.257312110Z" \
37+
curl -X "DELETE" "http://localhost:4000/v1/events/pipelines/test?version=2024-06-27%2012%3A02%3A34.257312110Z" \
3938
-H "Authorization: Basic {{authentication}}"
4039
```
4140

42-
In the above example, we deleted a pipeline named `test` in `public` database. The `version` parameter is required to specify the version of the pipeline to be deleted.
41+
In the above example, we deleted a pipeline named `test`. The `version` parameter is required to specify the version of the pipeline to be deleted.
4342

4443
## Query Pipelines
4544

0 commit comments

Comments
 (0)