return ensureType(toType, value, false);
}
private RexNode makeCastExactToInterval(RelDataType toType, RexNode exp) {
IntervalSqlType intervalType = (IntervalSqlType) toType;
TimeUnit endUnit = intervalType.getIntervalQualifier().getEndUnit();
if (endUnit == null) {
endUnit = intervalType.getIntervalQualifier().getStartUnit();
}
int scale = 0;
if (endUnit == TimeUnit.SECOND) {