@Override
  public void addInput(int[] groupIds, Column[] arguments, AggregationMask mask) {
    switch (yDataType) {
      case INT32:
      case DATE:
        addIntInput(groupIds, arguments, mask);
        return;
      case INT64:
      case TIMESTAMP:
        addLongInput(groupIds, arguments, mask);
        return;
      case FLOAT:
        addFloatInput(groupIds, arguments, mask);
        return;
      case DOUBLE:
        addDoubleInput(groupIds, arguments, mask);
        return;
      case TEXT:
      case BLOB:
      case STRING:
        addBinaryInput(groupIds, arguments, mask);
        return;
      case BOOLEAN:
        addBooleanInput(groupIds, arguments, mask);
        return;
      default:
        throw new UnSupportedDataTypeException(
            String.format("Unsupported data type in MAX_BY/MIN_BY Aggregation: %s", yDataType));
    }
  }
max(x,y) returns the value of x associated with the maximum value of y over all input values.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/relational/aggregation/grouped/GroupedMaxMinByBaseAccumulator.java