You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Xiangdong Huang (Jira)" <ji...@apache.org> on 2021/02/19 07:15:00 UTC
[jira] [Created] (IOTDB-1162) data can be queried after deletion
for a given timestamp
Xiangdong Huang created IOTDB-1162:
--------------------------------------
Summary: data can be queried after deletion for a given timestamp
Key: IOTDB-1162
URL: https://issues.apache.org/jira/browse/IOTDB-1162
Project: Apache IoTDB
Issue Type: Bug
Affects Versions: 0.11.2
Reporter: Xiangdong Huang
Example:
IoTDB> insert into root.sg.d1 (time, s1) values (1, 1);
Msg: The statement is executed successfully.
IoTDB> select s1 from root.sg.d1;
+-----------------------------+-------------+
| Time|root.sg.d1.s1|
+-----------------------------+-------------+
|1970-01-01T08:00:00.001+08:00| 1.0|
|2021-02-19T09:29:53.422+08:00| 1.0|
|2021-02-19T09:30:07.467+08:00| 2.0|
+-----------------------------+-------------+
Total line number = 3
It costs 0.003s
IoTDB> delete from root.sg.d1.s1 where time = 1;
Msg: The statement is executed successfully.
IoTDB> select s1 from root.sg.d1;
+-----------------------------+-------------+
| Time|root.sg.d1.s1|
+-----------------------------+-------------+
|2021-02-19T09:29:53.422+08:00| 1.0|
|2021-02-19T09:30:07.467+08:00| 2.0|
+-----------------------------+-------------+
Total line number = 2
It costs 0.004s
###(SUCCESSFUL)###
IoTDB> delete from root.sg.d1.s1 where time = 2021-02-19T09:30:07.467+08:00;
Msg: The statement is executed successfully.
IoTDB> select s1 from root.sg.d1;
+-----------------------------+-------------+
| Time|root.sg.d1.s1|
+-----------------------------+-------------+
|2021-02-19T09:29:53.422+08:00| 1.0|
|2021-02-19T09:30:07.467+08:00| 2.0|
+-----------------------------+-------------+
Total line number = 2
It costs 0.003s
###INCORRECT####
IoTDB> delete from root.sg.d1.s1 where time = 2021-02-19T09:29:53.422+08:00;
Msg: The statement is executed successfully.
IoTDB> select s1 from root.sg.d1;
+-----------------------------+-------------+
| Time|root.sg.d1.s1|
+-----------------------------+-------------+
|2021-02-19T09:29:53.422+08:00| 1.0|
|2021-02-19T09:30:07.467+08:00| 2.0|
+-----------------------------+-------------+
Total line number = 2
It costs 0.002s
####INCORRECT####
--
This message was sent by Atlassian Jira
(v8.3.4#803005)