private static boolean isDecimalRescaled(
      DecimalLogicalTypeAnnotation decimalAnnotation, DecimalType trinoType) {
    return decimalAnnotation.getPrecision() != trinoType.getPrecision()
        || decimalAnnotation.getScale() != trinoType.getScale();
  }
Copy from trino-parquet ColumnReaderFactory and do some change to adapt mixed-format table
amoro-format-mixed/amoro-mixed-trino/src/main/java/io/trino/parquet/reader/ColumnReaderFactory.java