Skip to content

删除超级表,未删除子表,再次创建超级表,插入数据能成功,但是分表用的tag为NULL #35182

@wapuboy-gmail

Description

@wapuboy-gmail

Bug Description
删除超级表,未删除子表,再次创建超级表,插入数据能成功,可在超级表查询到数据,但是分表用的tag为NULL,对应的子表数据为空。对应的流计算失败,提示很困惑。

To Reproduce
Steps to reproduce the behavior:

  1. 创建一个超级表, t_tick
  2. 插入数据 insert into t_tick_aapl using(t_tick) tags('aapl') values(...)
  3. 删除t_tick
  4. 再次创建t_tick
  5. 插入数据 insert into t_tick_aapl using(t_tick) tags('aapl') values(...)
  6. 此时查询t_tick,获得symbo为null

Expected Behavior
应该拒绝,如果无法重建超级表与子表的关系

Screenshots
没准备

Environment (please complete the following information):

  • OS: ubuntu 24.4
  • 8c 16g 500g
  • TDengine Version 3.4.1

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions