Skip to content

[Table Model] Implement table insert via tree model insertion#12353

Closed
MarcosZyk wants to merge 9 commits intoapache:ty/TableModelGrammarfrom
MarcosZyk:table-insert
Closed

[Table Model] Implement table insert via tree model insertion#12353
MarcosZyk wants to merge 9 commits intoapache:ty/TableModelGrammarfrom
MarcosZyk:table-insert

Conversation

@MarcosZyk
Copy link
Copy Markdown
Contributor

@MarcosZyk MarcosZyk commented Apr 16, 2024

Description

Table model cli

IoTDB> use db_1
Msg: The statement is executed successfully.
IoTDB> insert into t_3(Time, region, code, type, price, s_1, s_2) values(1, beijing, a_1, new, low, 1, 1)
Msg: The statement is executed successfully.

Tree model cli

IoTDB> show timeseries
+-----------------------------+-----+---------+--------+--------+-----------+----+----------+--------+------------------+--------+
|                   Timeseries|Alias| Database|DataType|Encoding|Compression|Tags|Attributes|Deadband|DeadbandParameters|ViewType|
+-----------------------------+-----+---------+--------+--------+-----------+----+----------+--------+------------------+--------+
|root.db_1.t_3.beijing.a_1.s_1| null|root.db_1|  DOUBLE| GORILLA|        LZ4|null|      null|    null|              null|    BASE|
|root.db_1.t_3.beijing.a_1.s_2| null|root.db_1|  DOUBLE| GORILLA|        LZ4|null|      null|    null|              null|    BASE|
+-----------------------------+-----+---------+--------+--------+-----------+----+----------+--------+------------------+--------+
Total line number = 2
It costs 0.096s
IoTDB> select * from root.db_1.** align by device
+-----------------------------+-------------------------+---+---+
|                         Time|                   Device|s_1|s_2|
+-----------------------------+-------------------------+---+---+
|1970-01-01T08:00:00.001+08:00|root.db_1.t_3.beijing.a_1|1.0|1.0|
+-----------------------------+-------------------------+---+---+
Total line number = 1
It costs 0.114s
IoTDB> show devices
+-------------------------+---------+--------+
|                   Device|IsAligned|Template|
+-------------------------+---------+--------+
|root.db_1.t_3.beijing.a_1|    false|    null|
+-------------------------+---------+--------+

@MarcosZyk MarcosZyk closed this Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant