Skip to content

Commit 7c3c79b

Browse files
authored
View does not support updating aliases (#527)
1 parent e889251 commit 7c3c79b

File tree

6 files changed

+20
-18
lines changed

6 files changed

+20
-18
lines changed

src/UserGuide/Master/Tree/User-Manual/IoTDB-View_timecho.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ In addition, for aliased sequences, if the user wants to get information about t
363363

364364
### Modify Views
365365

366-
The modification operations supported by the view include: modifying its calculation logic,modifying tag/attributes/aliases, and deleting.
366+
The modification operations supported by the view include: modifying its calculation logic,modifying tag/attributes, and deleting.
367367

368368
#### Modify view data source
369369

@@ -415,9 +415,9 @@ ALTER view root.turbine.d1.s1 SET newTag1=newV1, attr1=newV1
415415
ALTER view root.turbine.d1.s1 DROP tag1, tag2
416416
```
417417

418-
- Update insert aliases, tags and attributes
418+
- Update insert tags and attributes
419419

420-
> If the alias, tag or attribute did not exist before, insert it, otherwise, update the old value with the new one.
420+
> If the tag or attribute did not exist before, insert it, otherwise, update the old value with the new one.
421421
422422
```SQL
423423
ALTER view root.turbine.d1.s1 UPSERT TAGS(tag2=newV2, tag3=v3) ATTRIBUTES(attr3=v3, attr4=v4)

src/UserGuide/V2.0.1/Tree/User-Manual/IoTDB-View_timecho.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ In addition, for aliased sequences, if the user wants to get information about t
363363

364364
### Modify Views
365365

366-
The modification operations supported by the view include: modifying its calculation logic,modifying tag/attributes/aliases, and deleting.
366+
The modification operations supported by the view include: modifying its calculation logic,modifying tag/attributes, and deleting.
367367

368368
#### Modify view data source
369369

@@ -415,9 +415,9 @@ ALTER view root.turbine.d1.s1 SET newTag1=newV1, attr1=newV1
415415
ALTER view root.turbine.d1.s1 DROP tag1, tag2
416416
```
417417

418-
- Update insert aliases, tags and attributes
418+
- Update insert tags and attributes
419419

420-
> If the alias, tag or attribute did not exist before, insert it, otherwise, update the old value with the new one.
420+
> If the tag or attribute did not exist before, insert it, otherwise, update the old value with the new one.
421421
422422
```SQL
423423
ALTER view root.turbine.d1.s1 UPSERT TAGS(tag2=newV2, tag3=v3) ATTRIBUTES(attr3=v3, attr4=v4)

src/UserGuide/latest/User-Manual/IoTDB-View_timecho.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ In addition, for aliased sequences, if the user wants to get information about t
363363

364364
### Modify Views
365365

366-
The modification operations supported by the view include: modifying its calculation logic,modifying tag/attributes/aliases, and deleting.
366+
The modification operations supported by the view include: modifying its calculation logic,modifying tag/attributes, and deleting.
367367

368368
#### Modify view data source
369369

@@ -415,9 +415,9 @@ ALTER view root.turbine.d1.s1 SET newTag1=newV1, attr1=newV1
415415
ALTER view root.turbine.d1.s1 DROP tag1, tag2
416416
```
417417

418-
- Update insert aliases, tags and attributes
418+
- Update insert tags and attributes
419419

420-
> If the alias, tag or attribute did not exist before, insert it, otherwise, update the old value with the new one.
420+
> If the tag or attribute did not exist before, insert it, otherwise, update the old value with the new one.
421421
422422
```SQL
423423
ALTER view root.turbine.d1.s1 UPSERT TAGS(tag2=newV2, tag3=v3) ATTRIBUTES(attr3=v3, attr4=v4)

src/zh/UserGuide/Master/Tree/User-Manual/IoTDB-View_timecho.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,10 @@ WHERE temperature01 < temperature02
361361

362362
此外,对于别名序列,如果用户想要得到时间序列的tag、attributes等信息,则需要先查询视图列的映射,找到对应的时间序列,再向时间序列查询tag、attributes等信息。查询视图列的映射的方法将会在3.5部分说明。
363363

364+
364365
### 视图修改
365366

366-
视图支持的修改操作包括:修改计算逻辑,修改标签/属性/别名,以及删除。
367+
视图支持的修改操作包括:修改计算逻辑,修改标签/属性,以及删除。
367368

368369
#### 修改视图数据来源
369370

@@ -415,9 +416,9 @@ ALTER view root.turbine.d1.s1 SET newTag1=newV1, attr1=newV1
415416
ALTER view root.turbine.d1.s1 DROP tag1, tag2
416417
```
417418

418-
- 更新插入别名,标签和属性
419+
- 更新插入标签和属性
419420

420-
> 如果该别名,标签或属性原来不存在,则插入,否则,用新值更新原来的旧值
421+
> 如果该标签或属性原来不存在,则插入,否则,用新值更新原来的旧值
421422
422423
```SQL
423424
ALTER view root.turbine.d1.s1 UPSERT TAGS(tag2=newV2, tag3=v3) ATTRIBUTES(attr3=v3, attr4=v4)

src/zh/UserGuide/V2.0.1/Tree/User-Manual/IoTDB-View_timecho.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,10 @@ WHERE temperature01 < temperature02
361361

362362
此外,对于别名序列,如果用户想要得到时间序列的tag、attributes等信息,则需要先查询视图列的映射,找到对应的时间序列,再向时间序列查询tag、attributes等信息。查询视图列的映射的方法将会在3.5部分说明。
363363

364+
364365
### 视图修改
365366

366-
视图支持的修改操作包括:修改计算逻辑,修改标签/属性/别名,以及删除。
367+
视图支持的修改操作包括:修改计算逻辑,修改标签/属性,以及删除。
367368

368369
#### 修改视图数据来源
369370

@@ -415,9 +416,9 @@ ALTER view root.turbine.d1.s1 SET newTag1=newV1, attr1=newV1
415416
ALTER view root.turbine.d1.s1 DROP tag1, tag2
416417
```
417418

418-
- 更新插入别名,标签和属性
419+
- 更新插入标签和属性
419420

420-
> 如果该别名,标签或属性原来不存在,则插入,否则,用新值更新原来的旧值
421+
> 如果该标签或属性原来不存在,则插入,否则,用新值更新原来的旧值
421422
422423
```SQL
423424
ALTER view root.turbine.d1.s1 UPSERT TAGS(tag2=newV2, tag3=v3) ATTRIBUTES(attr3=v3, attr4=v4)

src/zh/UserGuide/latest/User-Manual/IoTDB-View_timecho.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ WHERE temperature01 < temperature02
363363

364364
### 视图修改
365365

366-
视图支持的修改操作包括:修改计算逻辑,修改标签/属性/别名,以及删除。
366+
视图支持的修改操作包括:修改计算逻辑,修改标签/属性,以及删除。
367367

368368
#### 修改视图数据来源
369369

@@ -415,9 +415,9 @@ ALTER view root.turbine.d1.s1 SET newTag1=newV1, attr1=newV1
415415
ALTER view root.turbine.d1.s1 DROP tag1, tag2
416416
```
417417

418-
- 更新插入别名,标签和属性
418+
- 更新插入标签和属性
419419

420-
> 如果该别名,标签或属性原来不存在,则插入,否则,用新值更新原来的旧值
420+
> 如果该标签或属性原来不存在,则插入,否则,用新值更新原来的旧值
421421
422422
```SQL
423423
ALTER view root.turbine.d1.s1 UPSERT TAGS(tag2=newV2, tag3=v3) ATTRIBUTES(attr3=v3, attr4=v4)

0 commit comments

Comments
 (0)