private static Comparable convertValue()

in xtable-core/src/main/java/org/apache/xtable/hudi/HudiFileStatsExtractor.java [270:284]


  private static Comparable convertValue(Comparable value, InternalType type) {
    // Special type handling
    if (value == null) {
      return value;
    }
    Comparable result = value;
    if (value instanceof Date) {
      result = dateToDaysSinceEpoch(value);
    } else if (type == InternalType.ENUM && (value instanceof ByteBuffer)) {
      result = new String(((ByteBuffer) value).array());
    } else if (type == InternalType.FIXED && (value instanceof Binary)) {
      result = ByteBuffer.wrap(((Binary) value).getBytes());
    }
    return result;
  }