xiaozhihong created IOTDB-4542:
----------------------------------
Summary: [cluster]Timeseries aligned without adding keywords and
insert the value of the check error
Key: IOTDB-4542
URL: https://issues.apache.org/jira/browse/IOTDB-4542
Project: Apache IoTDB
Issue Type: Bug
Components: mpp-cluster
Affects Versions: 0.14.0-SNAPSHOT
Reporter: xiaozhihong
Assignee: Haonan Hou
commit 09f3510ce8a5c1203128621b57e3aee47549fe6f
Start 3C3D and enter CLI, then execute SQL.
Like this, to insert data into a group of aligned time series, do not add the
{{ALIGNED}} keyword in SQL,, check error.
{code:java}
IoTDB> show timeseries root.sg2.d1.*;
+--------------+-----+-------------+--------+--------+-----------+----+----------+
| timeseries|alias|storage
group|dataType|encoding|compression|tags|attributes|
+--------------+-----+-------------+--------+--------+-----------+----+----------+
|root.sg2.d1.s1| null| root.sg2| INT32| RLE| SNAPPY|null|
null|
|root.sg2.d1.s2| null| root.sg2| DOUBLE| GORILLA| SNAPPY|null|
null|
+--------------+-----+-------------+--------+--------+-----------+----+----------+
Total line number = 2
It costs 0.014s IoTDB> insert into root.sg2.d1(time, s1, s2) values(1, 1,
1),(2, 2, 2), (3, 3, 3);
Msg: 303: Data type mismatch IoTDB> insert into root.sg2.d1(time, s1, s2)
values(1, 1, 1.0),(2, 2, 2.0), (3, 3, 3.0);
Msg: 303: Data type mismatch
{code}
But in standalone version,check right.
{code:java}
[root@i-fsupoyrh datanode]# ./sbin/start-cli.sh
---------------------
Starting IoTDB Cli
---------------------
_____ _________ ______ ______
|_ _| | _ _ ||_ _ `.|_ _ \
| | .--.|_/ | | \_| | | `. \ | |_) |
| | / .'`\ \ | | | | | | | __'.
_| |_| \__. | _| |_ _| |_.' /_| |__) |
|_____|'.__.' |_____| |______.'|_______/ version 0.14.0-SNAPSHOT (Build:
09f3510)
IoTDB> login successfully
IoTDB> create aligned timeseries root.sg2.d1(s1 INT32, s2 DOUBLE);
Msg: The statement is executed successfully.
IoTDB> show timeseries;
+--------------+-----+-------------+--------+--------+-----------+----+----------+
| timeseries|alias|storage
group|dataType|encoding|compression|tags|attributes|
+--------------+-----+-------------+--------+--------+-----------+----+----------+
|root.sg2.d1.s1| null| root.sg2| INT32| RLE| SNAPPY|null|
null|
|root.sg2.d1.s2| null| root.sg2| DOUBLE| GORILLA| SNAPPY|null|
null|
+--------------+-----+-------------+--------+--------+-----------+----+----------+
Total line number = 2
It costs 0.056s
IoTDB> insert into root.sg2.d1(time, s1, s2) values(1, 1, 1),(2, 2, 2), (3, 3,
3);
Msg: 506: org.apache.iotdb.commons.exception.MetadataException: Timeseries
under path [root.sg2.d1] is aligned , please set InsertPlan.isAligned() = true;
org.apache.iotdb.commons.exception.MetadataException: Timeseries under path
[root.sg2.d1] is aligned , please set InsertPlan.isAligned() = true;
org.apache.iotdb.commons.exception.MetadataException: Timeseries under path
[root.sg2.d1] is aligned , please set InsertPlan.isAligned() = true;
IoTDB> insert into root.sg2.d1(time, s1, s2) values(1, 1, 1.0),(2, 2, 2.0), (3,
3, 3.0);
Msg: 506: org.apache.iotdb.commons.exception.MetadataException: Timeseries
under path [root.sg2.d1] is aligned , please set InsertPlan.isAligned() = true;
org.apache.iotdb.commons.exception.MetadataException: Timeseries under path
[root.sg2.d1] is aligned , please set InsertPlan.isAligned() = true;
org.apache.iotdb.commons.exception.MetadataException: Timeseries under path
[root.sg2.d1] is aligned , please set InsertPlan.isAligned() = true; {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)