You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "citrusreticulata (via GitHub)" <gi...@apache.org> on 2023/06/13 08:47:46 UTC

[GitHub] [iotdb] citrusreticulata opened a new pull request, #10141: Support not checking `isAligned` in insertion

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

   ### Support not checking `isAligned` in insertion.
   Support not checking `isAligned` in insertion.
   Fix insertion failure when using alias series caused by `isAligned` checks.
   
   create an aligned timeseries:
   ```
   IoTDB> create ALIGNED timeseries root.db.d01(s01 INT32 encoding=RLE);
   Msg: The statement is executed successfully.
   IoTDB> show devices;
   +-----------+---------+
   |     Device|IsAligned|
   +-----------+---------+
   |root.db.d01|     true|
   +-----------+---------+
   Total line number = 1
   It costs 0.186s
   IoTDB> show timeseries root.**;
   +---------------+-----+--------+--------+--------+-----------+----+----------+--------+------------------+--------+
   |     Timeseries|Alias|Database|DataType|Encoding|Compression|Tags|Attributes|Deadband|DeadbandParameters|ViewType|
   +---------------+-----+--------+--------+--------+-----------+----+----------+--------+------------------+--------+
   |root.db.d01.s01| null| root.db|   INT32|     RLE|     SNAPPY|null|      null|    null|              null|        |
   +---------------+-----+--------+--------+--------+-----------+----+----------+--------+------------------+--------+
   Total line number = 1
   It costs 0.026s
   ```
   
   can not create timeseries which is not aligned under this device (same with before):
   ```
   IoTDB> create timeseries root.db.d01.s_not_align INT32 encoding=RLE;
   Msg: 609: timeseries under this device is aligned, please use createAlignedTimeseries or change device. (Path: root.db.d01)
   IoTDB>
   ```
   
   it's safe to use aligned or non-aligned interface.
   ```
   IoTDB> insert into root.db.d01(timestamp,s01) values(1, 36);
   Msg: The statement is executed successfully.
   IoTDB> insert into root.db.d01(timestamp,s01) aligned values(2, 37);
   Msg: The statement is executed successfully.
   IoTDB>
   ```
   
   user can use view to insert aligned or ono-aligned values:
   ```
   IoTDB> create view root.myview.d01.s01 as root.db.d01.s01;
   Msg: The statement is executed successfully.
   IoTDB> insert into root.myview.d01(timestamp,s01) values(3, 38);
   Msg: The statement is executed successfully.
   IoTDB> insert into root.myview.d01(timestamp,s01) aligned values(4, 99);
   Msg: The statement is executed successfully.
   IoTDB>
   ```
   


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


[GitHub] [iotdb] MarcosZyk merged pull request #10141: Support not checking `isAligned` in insertion

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


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