PDataType dataType = getDataType();
int nanos = dataType.getNanos(ptr, columnModifier);
if(nanos >= HALF_OF_NANOS_IN_MILLI) {
long timeMillis = dataType.getMillis(ptr, columnModifier);
Timestamp roundedTs = new Timestamp(timeMillis + 1);
byte[] byteValue = dataType.toBytes(roundedTs);
ptr.set(byteValue);
}
return true; // for timestamp we only support rounding up the milliseconds.
}
return false;