1. when casting constant, check the value is whether in the range of targetType 2. change the scale of dateTimeV2 to 6