You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "Cpaulyz (via GitHub)" <gi...@apache.org> on 2023/11/22 09:44:42 UTC

[PR] Fix fetch nested device with template will miss some devices [iotdb]

Cpaulyz opened a new pull request, #11597:
URL: https://github.com/apache/iotdb/pull/11597

   ## Description
   
   
   ### Reproduce
   ```
   --1. CREATE TEMPLATE
   create device template t1 (temperature FLOAT encoding=RLE, status BOOLEAN encoding=PLAIN compression=SNAPPY);
   show schema templates;
   show device templates;
   create database root.sg1;
   
   --2. SET TEMPLATE
   set device template t1 to root.sg1.d1;
   show paths set schema template t1;
   show paths set device template t1;
   
   --3. ACTIVATE TEMPLATE
   create timeseries of device template on root.sg1.d1;
   show paths using device template t1;
   show devices root.sg1.**;
   show timeseries;
   show timeseries root.sg1.**;
   
   --4. INSERT DATA
   insert into root.sg1.d1(time, temperature, status) values(1, 1, 1);
   insert into root.sg1.d1(time, temperature, status) values(2, 2, 0), (3, 3, 1);
   select * from root.sg1.d1;
   
   --5. QUERY
   insert into root.sg1.d1.GPS(time, latitude, longitude) values(1, 1, 1);
   show timeseries root.sg1.d1.**;
   select * from root.sg1.**;
   ```
   <img width="936" alt="image" src="https://github.com/apache/iotdb/assets/43774645/ddd6ad3f-3e95-44b7-a047-183dbb2f99fa">
   
   
   ### After fix
   <img width="1461" alt="image" src="https://github.com/apache/iotdb/assets/43774645/97ed6376-4adf-4413-a29e-ec717f8abe7f">
   
   


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix fetch nested device with template will miss some devices [iotdb]

Posted by "Cpaulyz (via GitHub)" <gi...@apache.org>.
Cpaulyz merged PR #11597:
URL: https://github.com/apache/iotdb/pull/11597


-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org