Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example results for User Guide documents #2171

Merged
merged 9 commits into from
Dec 7, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/UserGuide/Operation Manual/DML Data Manipulation Language.md
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,11 @@ The SQL statement is:
select s1,s2 from root.sg1.* align by device
```

The result shows below:

<center><img style="width:100%; max-width:800px; max-height:600px; margin-left:auto; margin-right:auto; display:block;" src="https://user-images.githubusercontent.com/26118649/100957517-94362200-3555-11eb-932c-511ea629f317.png"></center>
jixuan1989 marked this conversation as resolved.
Show resolved Hide resolved


For more syntax description, please read [SQL Reference](../Operation%20Manual/SQL%20Reference.md).

The 'disable align' indicates that there are 2 columns for each time series in the result set. Disable Align Clause can only be used at the end of a query statement. Disable Align Clause cannot be used with Aggregation, Fill Statements, Group By or Group By Device Statements, but can with Limit Statements. The display principle of the result table is that only when the column (or row) has existing data will the column (or row) be shown, with nonexistent cells being empty.
Expand All @@ -762,6 +767,11 @@ The SQL statement is:
select * from root.sg1 where time > 10 disable align
```

The result shows below:

<center><img style="width:100%; max-width:800px; max-height:600px; margin-left:auto; margin-right:auto; display:block;" src="https://user-images.githubusercontent.com/26118649/100957521-95ffe580-3555-11eb-8b26-14f36e106b13.png"></center>


For more syntax description, please read [SQL Reference](../Operation%20Manual/SQL%20Reference.md).

#### Error Handling
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -802,9 +802,23 @@ SQL语句是:
select s1,s2 from root.sg1.* ALIGN BY DEVICE

```
结果显示如下:

<center><img style="width:100%; max-width:800px; max-height:600px; margin-left:auto; margin-right:auto; display:block;" src="https://user-images.githubusercontent.com/26118649/100957517-94362200-3555-11eb-932c-511ea629f317.png"></center>

“禁用对齐”指示结果集中每个时间序列都有3列。 有关更多语法描述,更多语法请参照 [SQL REFERENCE](../Operation%20Manual/SQL%20Reference.md).
“禁用对齐”指示结果集中每个时间序列都有3列。

SQL语句是:

```
select * from root.sg1 where time > 10 disable align
```

结果显示如下:

<center><img style="width:100%; max-width:800px; max-height:600px; margin-left:auto; margin-right:auto; display:block;" src="https://user-images.githubusercontent.com/26118649/100957521-95ffe580-3555-11eb-8b26-14f36e106b13.png"></center>

有关更多语法描述,更多语法请参照 [SQL REFERENCE](../Operation%20Manual/SQL%20Reference.md).

#### 错误处理

Expand Down