@Override
  public void validate(UDFParameterValidator validator) throws Exception {
    validator
        .validateInputSeriesNumber(1)
        .validateInputSeriesDataType(0, Type.INT32, Type.INT64, Type.FLOAT, Type.DOUBLE);
  }
This function is used to calculate the spread of time series, that is, the maximum value minus
the minimum value.
library-udf/src/main/java/org/apache/iotdb/library/dprofile/UDAFSpread.java