You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Haonan Hou (Jira)" <ji...@apache.org> on 2021/02/20 07:05:00 UTC

[jira] [Commented] (IOTDB-1162) data can be queried after deletion for a given timestamp

    [ https://issues.apache.org/jira/browse/IOTDB-1162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17287571#comment-17287571 ] 

Haonan Hou commented on IOTDB-1162:
-----------------------------------

I tried 0.11 on my mac, but everything is correct...

IoTDB> insert into root.sg.d1 (time, s1) values (1, 1)

Msg: The statement is executed successfully.

IoTDB> insert into root.sg.d1 (time,s1) values(now(),1)

Msg: The statement is executed successfully.

IoTDB> insert into root.sg.d1 (time,s1) values(now(),2)

Msg: The statement is executed successfully.

IoTDB> select * from root

+-----------------------------+-------------+

|                         Time|root.sg.d1.s1|

+-----------------------------+-------------+

|1970-01-01T08:00:00.001+08:00|          1.0|

|2021-02-20T15:01:16.176+08:00|          1.0|

|2021-02-20T15:01:25.309+08:00|          2.0|

+-----------------------------+-------------+

Total line number = 3

It costs 0.155s

IoTDB> delete from root.sg.d1.s1 where time = 2021-02-20T15:01:16.176+08:00

Msg: The statement is executed successfully.

IoTDB> select * from root

+-----------------------------+-------------+

|                         Time|root.sg.d1.s1|

+-----------------------------+-------------+

|1970-01-01T08:00:00.001+08:00|          1.0|

|2021-02-20T15:01:25.309+08:00|          2.0|

+-----------------------------+-------------+

Total line number = 2

It costs 0.019s

> 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
>            Priority: Major
>
> 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)