for (int i : selectedPartitionColumns) {
if (partitionValues.length > i) {
NullableVarCharVector v = (NullableVarCharVector) partitionVectors.get(i);
String val = partitionValues[i];
AllocationHelper.allocate(v, recordCount, val.length());
NullableVarCharHolder h = new NullableVarCharHolder();
byte[] bytes = val.getBytes();
h.buffer = Unpooled.buffer(bytes.length);
h.buffer.writeBytes(bytes);
h.start = 0;
h.isSet = 1;