@Override
  public boolean equals(final Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null || getClass() != obj.getClass()) {
      return false;
    }
    final AlterTimeSeriesStatement that = (AlterTimeSeriesStatement) obj;
    return Objects.equals(this.path, that.path)
        && Objects.equals(this.alterType, that.alterType)
        && Objects.equals(this.alterMap, that.alterMap)
        && Objects.equals(this.alias, that.alias)
        && Objects.equals(this.tagsMap, that.tagsMap)
        && Objects.equals(this.attributesMap, that.attributesMap)
        && Objects.equals(this.isAlterView, that.isAlterView);
  }
Used when the alterType is UPSERT.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/statement/metadata/AlterTimeSeriesStatement.java