v.getMutator().setSafe(j, value);
}
break;
}
case DATE: {
DateVector v = (DateVector) vector;
DateTime date = new DateTime(((Date)val).getTime()).withZoneRetainFields(DateTimeZone.UTC);
long value = date.getMillis();
for (int j = 0; j < recordCount; j++) {
v.getMutator().setSafe(j, value);
}
break;
}
case DECIMAL: {
VarCharVector v = (VarCharVector) vector;
byte[] value = ((HiveDecimal) val).toString().getBytes();
for (int j = 0; j < recordCount; j++) {
v.getMutator().setSafe(j, value);
}
break;
}
default:
throwUnsupportedHiveDataTypeError(pCat.toString());