@Override
  public void updateTableDeviceAttribute(final TableDeviceAttributeUpdateNode updateNode)
      throws MetadataException {
    try (final DeviceAttributeUpdater batchUpdater = constructDevicePredicateUpdater(updateNode)) {
      for (final PartialPath pattern :
          TableDeviceQuerySource.getDevicePatternList(
              updateNode.getDatabase(),
              DataNodeTableCache.getInstance()
                  .getTable(updateNode.getDatabase(), updateNode.getTableName()),
              updateNode.getTagDeterminedFilterList())) {
        mTree.updateTableDevice(pattern, batchUpdater);
      }
    }
    deviceAttributeCacheUpdater.afterUpdate();
    writeToMLog(updateNode);
  }
remove the node from the tag inverted index
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/impl/SchemaRegionMemoryImpl.java