TDengine icon indicating copy to clipboard operation
TDengine copied to clipboard

TDengine 3.2.2.0 delete not worked

Open litongjava opened this issue 1 year ago • 5 comments

TDengine 3.2.2.0 无法删除 创表语句

create table if not exists manliang_pen.pen_raw_data_stable (
  ts timestamp,
  cmd TINYINT,
  payload binary(256),
  payload_ts timestamp
) TAGS (
  client_id nchar(20)
);

下面演示根据主键删除数据,删除失败

C:\Users\Administrator>taos -u root -proot123 -h 192.168.3.9
Welcome to the TDengine Command Line Interface, Client Version:3.2.2.0
Copyright (c) 2023 by TDengine, all rights reserved.

Server is Community Edition.

taos> DELETE FROM manliang_pen.pen_raw_data_stable WHERE ts = '2024-03-12 15:30:28.112';
Delete OK, 0 row(s) affected (0.006619s)

taos> select * from  manliang_pen.pen_raw_data_stable;
           ts            | cmd  |            payload             |       payload_ts        |           client_id            |
=============================================================================================================================
 2024-03-12 15:21:53.399 |    0 |                                | 2024-03-12 15:22:13.589 | mqttx_9235c376                 |
 2024-03-12 15:30:28.112 |    2 |                                | 2024-03-12 15:30:48.325 | mqttx_9235c376                 |
 2024-03-12 15:32:39.607 |    3 |                                | 2024-03-12 15:32:59.826 | mqttx_9235c376                 |
 2024-03-12 15:34:39.987 |    0 |                                | 2024-03-12 15:35:00.202 | mqttx_9235c376                 |
 2024-03-12 15:37:22.200 |    1 |                                | 2024-03-12 15:37:42.414 | mqttx_9235c376                 |
 2024-03-12 15:39:26.320 |    2 |                                | 2024-03-12 15:39:46.527 | mqttx_9235c376                 |
 2024-03-12 15:40:46.013 |    3 |                                | 2024-03-12 15:41:06.219 | mqttx_9235c376                 |
 

litongjava avatar Mar 27 '24 11:03 litongjava

我们看一下。

yu285 avatar Apr 10 '24 09:04 yu285

您好,方便联系我们一下吗,微信a15652223354,我们远程看一下问题

yu285 avatar Apr 12 '24 02:04 yu285

看下是不是客户端时区与服务器不一致导致的,使用 taos -r 启动,按 timestmap 的方式删除试试

DuanKuanJun avatar Apr 18 '24 07:04 DuanKuanJun

服务器和客户端定的时区不一致。在美国,不一致的情况和常见

On Wed, Apr 17, 2024, 9:22 PM Alex Duan @.***> wrote:

看下是不是客户端时区与服务器不一致导致的,使用 taos -r 启动,按 timestmap 的方式删除试试

— Reply to this email directly, view it on GitHub https://github.com/taosdata/TDengine/issues/25202#issuecomment-2063194712, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHSKMPP4X6DRNJQL3ZHAKCTY55YDTAVCNFSM6AAAAABFKVSR46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRTGE4TINZRGI . You are receiving this because you authored the thread.Message ID: @.***>

litongjava avatar Apr 18 '24 13:04 litongjava

服务器和客户端定的时区不一致。在美国,不一致的情况和常见 On Wed, Apr 17, 2024, 9:22 PM Alex Duan @.> wrote: 看下是不是客户端时区与服务器不一致导致的,使用 taos -r 启动,按 timestmap 的方式删除试试 — Reply to this email directly, view it on GitHub <#25202 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHSKMPP4X6DRNJQL3ZHAKCTY55YDTAVCNFSM6AAAAABFKVSR46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRTGE4TINZRGI . You are receiving this because you authored the thread.Message ID: @.>

您好,已经确认是时区问题了吗?

yu285 avatar Apr 24 '24 01:04 yu285