-
-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CsvParser.Feature.EMPTY_STRING_AS_NULL
to allow coercing empty Strings into null
values
#7
Comments
@cowtowncoder I'm interested in contributing to this if it's still a viable enhancement |
@tyler2cr yes I think this would be great thing to have. Could make it into 2.10.0, too. |
Ok - is the approach to ensure that the |
Good question. Javadocs say (at least for 2.10, it was clarified at some point):
which means Given this, I think what makes more sense is to actually define a new |
@cowtowncoder I submitted a pull request that’s ready for code review. |
Thanks! |
CsvParser.Feature.EMPTY_STRING_AS_NULL
to allow coercing empty Strings into null
values
It seems you forgot to close this issue. @cowtowncoder |
@DodoMomo right you are, thaks! |
(from FasterXML/jackson-dataformat-csv#146 by @robmoore)
We're working with a set of files that contains both empty strings and
NULL
values. We are using.withNullValue("NULL")
as well asDeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT
but are ending up with empty strings rather than null values for these cases.In issue 112, @cowtowncoder suggested it might be possible to support an alternate notation in addition to the explicit null value indicated in
withNullValue()
.The text was updated successfully, but these errors were encountered: