How was delete rows in druid

20 views
Skip to first unread message

aparna bala

unread,
May 6, 2024, 12:20:23 AMMay 6
to druid...@googlegroups.com
Hi,
  Is there any way we can delete all rows in apache druid.

Thanks and regards,
aparna

John Kowtko

unread,
May 6, 2024, 8:33:26 PMMay 6
to Druid User
Hi Aparna,

In Druid the table existence and schema is based on the existence of its segments ... you can delete all of the rows in a datasource (table) by dropping all of its segments.  

However when you do this the datasource itself will disappear.  So you cannot have an "empty datasource" in Druid ... you must have at least one row of data.

If you are looking to do something specific here please explain and hopefully we can help further.

Thanks.  John
Reply all
Reply to author
Forward
0 new messages