Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Recognize the configured "null value" (String) also in reader-infrastructure. #72

Closed
flappingeagle opened this issue Mar 20, 2015 · 1 comment
Milestone

Comments

@flappingeagle
Copy link

In issue #53 a way to specify a configured "null value" (String) in CsvSchema has been implemented and can be used like:

CsvSchema schema = CsvSchema.builder()
    .setNullValue("n/a")
    .build();

While this new property is already recognized by the Writer-Infrastructure it should also be recognized by the Reader-Infrastructure for deserialization to Java-Null-Values.

@seglo
Copy link

seglo commented May 11, 2015

I was disappointed to find out the reader doesn't respect this as well. Right now I have no way of determining whether or not a String is a null or empty value.

@cowtowncoder cowtowncoder added this to the 2.6.0-rc3 milestone Jun 25, 2015
cowtowncoder added a commit that referenced this issue Jun 29, 2015
… reading; only former will cause coercion of empty String into `null`, at streaming parser level (higher-level mapping may still occur).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants