public boolean hasSuffix(QualifiedName suffix) {
    if (parts.size() < suffix.getParts().size()) {
      return false;
    }

    int start = parts.size() - suffix.getParts().size();
    return parts.subList(start, parts.size()).equals(suffix.getParts());
  }
For an identifier of the form "a.b.c.d", returns "a.b.c", For an identifier of the form "a",
returns absent
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/sql/ast/QualifiedName.java