if (condition.getValue() != null) {
ValueType valueType = fieldType.getValueType();
avroCond.setValueType(valueType.getName());
byte[] value = valueType.toBytes(condition.getValue(), parentRecords);
avroCond.setValue(ByteBuffer.wrap(value));
}
avroCond.setOperator(convert(condition.getOp()));
avroCond.setAllowMissing(condition.getAllowMissing());