arrow-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joris Peeters <>
Subject [Java JDBC adapter] non-nullable fields?
Date Tue, 04 May 2021 10:38:59 GMT
I'm looking to use the Java JDBC adapter for loading tables from SQL Server
into Arrow record batches.

At first glance the Arrow JDBC adapter seems to work well but, unless I'm
mistaken, it simply makes every vector nullable, irrespective of whether
the corresponding SQL column is nullable or not.

I think the line

final FieldType fieldType = new FieldType(true, arrowType, /* dictionary
encoding */ null, metadata);

might be the cause here.

Is my interpretation correct, or am I missing a setting of sorts? If indeed
correct, is there a fundamental reason the NULL-ness is not transferred, or
is this something I could contribute in a PR? (which I'd be happy to) I
guess it's just a matter of inspecting the result metadata.


View raw message