You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/06/24 01:31:40 UTC
[GitHub] [iotdb] liuzhen1207 edited a comment on issue #3424: 重启后再次修改测点的tag发现没法按照tag做查询了
liuzhen1207 edited a comment on issue #3424:
URL: https://github.com/apache/iotdb/issues/3424#issuecomment-865831768
复现过程:
1. bm在release 0.11.3上生成数据
bm配置文件:
INSERT_MODE=session
IS_CLIENT_BIND=true
CLIENT_NUMBER=10
GROUP_NUMBER=1
DEVICE_NUMBER=1
SENSOR_NUMBER=6
BATCH_SIZE=1000
LOOP=10000
IS_OVERFLOW=false
OPERATION_PROPORTION=1:0:0:0:0:0:0:0:0:0:0
2. Rel 0.11.3 cli 修改序列增加tags信息
show timeseries;
flush
alter timeseries root.group_0.d_0.s_2 UPSERT ALIAS=alias_s2 TAGS(tag='hi',tag2='hello') ATTRIBUTES(attr1='red',attr2='blue')
// 根据tag信息查询时间序列 结果正确 不报错
show timeseries root.group_0.d_0 where tag2='hello';
show timeseries root.group_0.d_0 where tag='hi';
![image](https://user-images.githubusercontent.com/15992443/122906440-bcb42b00-d384-11eb-9474-fef0b5aa4e3c.png)
3. **重启0.11.3** 或 copy 0.11.3的data到rel 0.11.4/0.11.4 cli根据tag查询序列报错
show timeseries root.group_0.d_0 where tag2='hello';
**Msg: 500: The key tag2 is not a tag.**
![image](https://user-images.githubusercontent.com/15992443/122906409-b3c35980-d384-11eb-95c1-2d2270d34d76.png)
show timeseries可以看到tags信息
![image](https://user-images.githubusercontent.com/15992443/122910636-0272f280-d389-11eb-806e-7b0b55c00f6f.png)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org