You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by zy...@apache.org on 2022/11/23 08:57:37 UTC
[iotdb] branch master updated: Fix some format error about database in docs (#8111)
This is an automated email from the ASF dual-hosted git repository.
zyk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 819ca649c0 Fix some format error about database in docs (#8111)
819ca649c0 is described below
commit 819ca649c03b2f12c4ab1ef17d51f9f20986f6e5
Author: Chen YZ <43...@users.noreply.github.com>
AuthorDate: Wed Nov 23 16:57:31 2022 +0800
Fix some format error about database in docs (#8111)
---
.../Operate-Metadata/{Storage-Group.md => Database.md} | 4 ++--
docs/UserGuide/Operate-Metadata/Timeseries.md | 4 ++--
.../Operate-Metadata/{Storage-Group.md => Database.md} | 6 +++---
docs/zh/UserGuide/Operate-Metadata/Template.md | 2 +-
docs/zh/UserGuide/Operate-Metadata/Timeseries.md | 14 +++++++-------
site/src/main/.vuepress/config.js | 4 ++--
6 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/docs/UserGuide/Operate-Metadata/Storage-Group.md b/docs/UserGuide/Operate-Metadata/Database.md
similarity index 99%
rename from docs/UserGuide/Operate-Metadata/Storage-Group.md
rename to docs/UserGuide/Operate-Metadata/Database.md
index 4e358535b8..029cb7b63b 100644
--- a/docs/UserGuide/Operate-Metadata/Storage-Group.md
+++ b/docs/UserGuide/Operate-Metadata/Database.md
@@ -44,7 +44,7 @@ The LayerName of database can only be characters, numbers, underscores. If you w
Besides, if deploy on Windows system, the LayerName is case-insensitive, which means it's not allowed to create databases `root.ln` and `root.LN` at the same time.
-## SHOW DATABASES
+## Show Databases
After creating the database, we can use the [SHOW DATABASES](../Reference/SQL-Reference.md) statement and [SHOW DATABASES \<PathPattern>](../Reference/SQL-Reference.md) to view the databases. The SQL statements are as follows:
@@ -77,7 +77,7 @@ IoTDB > DELETE DATABASE root.sgcc
IoTDB > DELETE DATABASE root.**
```
-## Count Database
+## Count Databases
User can use the `COUNT DATABASE <PathPattern>` statement to count the number of databases. It is allowed to specify `PathPattern` to count the number of databases matching the `PathPattern`.
diff --git a/docs/UserGuide/Operate-Metadata/Timeseries.md b/docs/UserGuide/Operate-Metadata/Timeseries.md
index b9eaa1eb93..af91e768c7 100644
--- a/docs/UserGuide/Operate-Metadata/Timeseries.md
+++ b/docs/UserGuide/Operate-Metadata/Timeseries.md
@@ -164,8 +164,8 @@ Besides, `LEVEL` could be defined to show count the number of timeseries of each
For example, if there are several timeseries (use `show timeseries` to show all timeseries):
```
-+-------------------------------+--------+--------+--------+--------+-----------+-------------------------------------------+--------------------------------------------------------+
-| timeseries| alias|database|dataType|encoding|compression| tags| attributes|
++-------------------------------+--------+-------------+--------+--------+-----------+-------------------------------------------+--------------------------------------------------------+
+| timeseries| alias| database|dataType|encoding|compression| tags| attributes|
+-------------------------------+--------+-------------+--------+--------+-----------+-------------------------------------------+--------------------------------------------------------+
|root.sgcc.wf03.wt01.temperature| null| root.sgcc| FLOAT| RLE| SNAPPY| null| null|
| root.sgcc.wf03.wt01.status| null| root.sgcc| BOOLEAN| PLAIN| SNAPPY| null| null|
diff --git a/docs/zh/UserGuide/Operate-Metadata/Storage-Group.md b/docs/zh/UserGuide/Operate-Metadata/Database.md
similarity index 96%
rename from docs/zh/UserGuide/Operate-Metadata/Storage-Group.md
rename to docs/zh/UserGuide/Operate-Metadata/Database.md
index 5f54cec456..439c27a36c 100644
--- a/docs/zh/UserGuide/Operate-Metadata/Storage-Group.md
+++ b/docs/zh/UserGuide/Operate-Metadata/Database.md
@@ -41,7 +41,7 @@ Database 节点名只支持中英文字符、数字、下划线的组合,如
还需注意,如果在 Windows 系统上部署,database 名是大小写不敏感的。例如同时创建`root.ln` 和 `root.LN` 是不被允许的。
-## 查看 database
+## 查看数据库
在 database 创建后,我们可以使用 [SHOW DATABASES](../Reference/SQL-Reference.md) 语句和 [SHOW DATABASES \<PathPattern>](../Reference/SQL-Reference.md) 来查看 database,SQL 语句如下所示:
@@ -55,7 +55,7 @@ IoTDB> show databases root.**
```
+-------------+----+-------------------------+-----------------------+-----------------------+
-|database| ttl|schema_replication_factor|data_replication_factor|time_partition_interval|
+| database| ttl|schema_replication_factor|data_replication_factor|time_partition_interval|
+-------------+----+-------------------------+-----------------------+-----------------------+
| root.sgcc|null| 2| 2| 604800|
| root.ln|null| 2| 2| 604800|
@@ -75,7 +75,7 @@ IoTDB > DELETE DATABASE root.sgcc
IoTDB > DELETE DATABASE root.**
```
-## 统计 database 数量
+## 统计数据库数量
用户可以使用`COUNT DATABASES <PathPattern>`语句统计数据库的数量,允许指定`PathPattern` 用来统计匹配该`PathPattern` 的数据库的数量
diff --git a/docs/zh/UserGuide/Operate-Metadata/Template.md b/docs/zh/UserGuide/Operate-Metadata/Template.md
index 0f24baa03e..16f9a6dc4f 100644
--- a/docs/zh/UserGuide/Operate-Metadata/Template.md
+++ b/docs/zh/UserGuide/Operate-Metadata/Template.md
@@ -86,7 +86,7 @@ show timeseries root.sg1.**
```shell
+-----------------------+-----+-------------+--------+--------+-----------+----+----------+
-| timeseries|alias|database|dataType|encoding|compression|tags|attributes|
+| timeseries|alias| database|dataType|encoding|compression|tags|attributes|
+-----------------------+-----+-------------+--------+--------+-----------+----+----------+
|root.sg1.d1.temperature| null| root.sg1| FLOAT| RLE| SNAPPY|null| null|
| root.sg1.d1.status| null| root.sg1| BOOLEAN| PLAIN| SNAPPY|null| null|
diff --git a/docs/zh/UserGuide/Operate-Metadata/Timeseries.md b/docs/zh/UserGuide/Operate-Metadata/Timeseries.md
index dc85c071d2..ed9ecc7ba7 100644
--- a/docs/zh/UserGuide/Operate-Metadata/Timeseries.md
+++ b/docs/zh/UserGuide/Operate-Metadata/Timeseries.md
@@ -103,7 +103,7 @@ IoTDB> show timeseries root.ln.**
```
+-------------------------------+--------+-------------+--------+--------+-----------+-------------------------------------------+--------------------------------------------------------+
-| timeseries| alias|database|dataType|encoding|compression| tags| attributes|
+| timeseries| alias| database|dataType|encoding|compression| tags| attributes|
+-------------------------------+--------+-------------+--------+--------+-----------+-------------------------------------------+--------------------------------------------------------+
|root.sgcc.wf03.wt01.temperature| null| root.sgcc| FLOAT| RLE| SNAPPY| null| null|
| root.sgcc.wf03.wt01.status| null| root.sgcc| BOOLEAN| PLAIN| SNAPPY| null| null|
@@ -117,7 +117,7 @@ Total line number = 7
It costs 0.016s
+-----------------------------+-----+-------------+--------+--------+-----------+----+----------+
-| timeseries|alias|database|dataType|encoding|compression|tags|attributes|
+| timeseries|alias| database|dataType|encoding|compression|tags|attributes|
+-----------------------------+-----+-------------+--------+--------+-----------+----+----------+
| root.ln.wf02.wt02.hardware| null| root.ln| TEXT| PLAIN| SNAPPY|null| null|
| root.ln.wf02.wt02.status| null| root.ln| BOOLEAN| PLAIN| SNAPPY|null| null|
@@ -159,7 +159,7 @@ IoTDB > COUNT TIMESERIES root.ln.wf01.wt01.status
```
+-------------------------------+--------+-------------+--------+--------+-----------+-------------------------------------------+--------------------------------------------------------+
-| timeseries| alias|database|dataType|encoding|compression| tags| attributes|
+| timeseries| alias| database|dataType|encoding|compression| tags| attributes|
+-------------------------------+--------+-------------+--------+--------+-----------+-------------------------------------------+--------------------------------------------------------+
|root.sgcc.wf03.wt01.temperature| null| root.sgcc| FLOAT| RLE| SNAPPY| null| null|
| root.sgcc.wf03.wt01.status| null| root.sgcc| BOOLEAN| PLAIN| SNAPPY| null| null|
@@ -288,7 +288,7 @@ show timeseries root.ln.** where description contains 'test1'
```
+--------------------------+-----+-------------+--------+--------+-----------+------------+----------+
-| timeseries|alias|database|dataType|encoding|compression| tags|attributes|
+| timeseries|alias| database|dataType|encoding|compression| tags|attributes|
+--------------------------+-----+-------------+--------+--------+-----------+------------+----------+
|root.ln.wf02.wt02.hardware| null| root.ln| TEXT| PLAIN| SNAPPY|{"unit":"c"}| null|
+--------------------------+-----+-------------+--------+--------+-----------+------------+----------+
@@ -296,7 +296,7 @@ Total line number = 1
It costs 0.005s
+------------------------+-----+-------------+--------+--------+-----------+-----------------------+----------+
-| timeseries|alias|database|dataType|encoding|compression| tags|attributes|
+| timeseries|alias| database|dataType|encoding|compression| tags|attributes|
+------------------------+-----+-------------+--------+--------+-----------+-----------------------+----------+
|root.ln.wf02.wt02.status| null| root.ln| BOOLEAN| PLAIN| SNAPPY|{"description":"test1"}| null|
+------------------------+-----+-------------+--------+--------+-----------+-----------------------+----------+
@@ -362,7 +362,7 @@ create aligned timeseries root.sg1.d1(s1 INT32 tags(tag1=v1, tag2=v2) attributes
```
+--------------+-----+-------------+--------+--------+-----------+-------------------------+---------------------------+
-| timeseries|alias|database|dataType|encoding|compression| tags| attributes|
+| timeseries|alias| database|dataType|encoding|compression| tags| attributes|
+--------------+-----+-------------+--------+--------+-----------+-------------------------+---------------------------+
|root.sg1.d1.s1| null| root.sg1| INT32| RLE| SNAPPY|{"tag1":"v1","tag2":"v2"}|{"attr2":"v2","attr1":"v1"}|
|root.sg1.d1.s2| null| root.sg1| DOUBLE| GORILLA| SNAPPY|{"tag4":"v4","tag3":"v3"}|{"attr4":"v4","attr3":"v3"}|
@@ -376,7 +376,7 @@ IoTDB> show databases where tag1='v1'
Msg: 401: Error occurred while parsing SQL to physical plan: line 1:19 mismatched input 'where' expecting {<EOF>, ';'}
IoTDB> show timeseries where tag1='v1'
+--------------+-----+-------------+--------+--------+-----------+-------------------------+---------------------------+
-| timeseries|alias|database|dataType|encoding|compression| tags| attributes|
+| timeseries|alias| database|dataType|encoding|compression| tags| attributes|
+--------------+-----+-------------+--------+--------+-----------+-------------------------+---------------------------+
|root.sg1.d1.s1| null| root.sg1| INT32| RLE| SNAPPY|{"tag1":"v1","tag2":"v2"}|{"attr2":"v2","attr1":"v1"}|
+--------------+-----+-------------+--------+--------+-----------+-------------------------+---------------------------+
diff --git a/site/src/main/.vuepress/config.js b/site/src/main/.vuepress/config.js
index 5a94c1ba85..21b79a95d7 100644
--- a/site/src/main/.vuepress/config.js
+++ b/site/src/main/.vuepress/config.js
@@ -893,7 +893,7 @@ var config = {
title: 'Operate Metadata',
sidebarDepth: 1,
children: [
- ['Operate-Metadata/Storage-Group','Storage Group'],
+ ['Operate-Metadata/Database','Database'],
['Operate-Metadata/Node','Node'],
['Operate-Metadata/Timeseries','Timeseries'],
['Operate-Metadata/Template','Schema Template'],
@@ -1845,7 +1845,7 @@ var config = {
title: '元数据操作',
sidebarDepth: 1,
children: [
- ['Operate-Metadata/Storage-Group','存储组操作'],
+ ['Operate-Metadata/Database','数据库操作'],
['Operate-Metadata/Node','节点操作'],
['Operate-Metadata/Timeseries','时间序列操作'],
['Operate-Metadata/Template','元数据模板'],