private static boolean isZeroScaleDecimalAnnotation(LogicalTypeAnnotation typeAnnotation) {
    return typeAnnotation instanceof DecimalLogicalTypeAnnotation
        && ((DecimalLogicalTypeAnnotation) typeAnnotation).getScale() == 0;
  }
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