Thanks for the review. I addressed both comments in commit 5d14c0f4
<https://github.com/apache/iotdb/pull/19431/commits/5d14c0f47b4d47178bcf2a1fcb2bea6fd86f58fc>
and updated the PR title as suggested.

The new TestVisitor test verifies that each TAG literal, including * and **,
matches through a single direct lookup without scanning siblings. It also
checks that a device with a trailing NULL TAG does not match.

The integration test now queries rack* on every DataNode before deletion,
then repeats the filtered SELECT and SHOW DEVICES after deletion. It checks
that rack1 and its data survive, that absent * and ** values each report
zero deletions, and that leading-asterisk and dotted literals match
exactly. Each delete returns exactly one count row.

All 15 DeviceFilterUtilTest tests passed locally. The integration test also
passed with both one and three DataNodes. PR #19431 is ready for another
look. <https://github.com/apache/iotdb/pull/19431>

Thanks,
DaZuiZui

Yuan Tian <[email protected]> 于2026年11月28日周六 08:38写道:

> Hi Bryan,
>
> Maybe @Tian Jiang could take a look.
>
> Best regards,
> ---------------------
> Yuan Tian
>
>
> On Fri, Nov 27, 2026 at 4:54 PM Bryan Yang <[email protected]> wrote:
>
> > Hi IoTDB ,
> >
> > Could you review PR #19431 <https://github.com/apache/iotdb/pull/19431>?
> > It
> > fixes a table-model bug reported against IoTDB 2.0.11 in issue #19423
> > <https://github.com/apache/iotdb/issues/19423>.
> >
> > For example, if two devices have TAG values rack* and *rack1*, an
> equality
> > condition for *rack** can select both devices for deletion. This happens
> > because device lookup interprets the trailing asterisk as a path
> wildcard.
> > The fix uses exact-name lookup for TAG values with leading or trailing
> > asterisks.
> >
> > All 14 tests in DeviceFilterUtilTest passed locally. I also ran the
> > regression test with one DataNode and with three DataNodes. In both
> cases,
> > the first delete removed only rack*, repeating it removed zero devices,
> and
> > rack1 and its data remained readable.
> >
> > Thanks,
> > DaZuiZui
> >
>

Reply via email to