Description
avoidVerbose is used for suppressing the warning message, but it should be incremented each time when input scale is larger than given scale
public void serialize(BigDecimal value, ByteBuffer out) {
if (value.scale() > type.getScale()) {
if (avoidVerbose++ % 10000 == 0)
value = value.setScale(type.getScale(), BigDecimal.ROUND_HALF_EVEN);
}