Hi Atul,

You should be able to use the overloaded 'set' method that takes a NullableVarCharHolder:

https://github.com/apache/arrow/blob/master/java/vector/src/main/java/org/apache/arrow/vector/VarCharVector.java#L237

Thanks,

Emilio

On 04/10/2018 05:23 PM, Atul Dambalkar wrote:
Hi,

I wanted to know what's the best way to handle NULL string values coming from a 
relational database. I am trying to set the string values in Java API - 
VarCharVector. Like few other Arrow Vectors (TimeStampVector, TimeMilliVector), 
the VarCharVector doesn't have a way to set a NULL value as one of the 
elements. Can someone advise what's the correct mechanism to store NULL values 
in this case.

Regards,
-Atul



Reply via email to