public static BigDecimal toLogical(Schema schema, byte[] value) {
        return new BigDecimal(new BigInteger(value), scale(schema));
    }
Convert a value from its encoded format (byte[]) to its logical format ({@link BigDecimal}).
@param value the encoded value
@return the logical value
connect/api/src/main/java/org/apache/kafka/connect/data/Decimal.java