You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a little problem trying to parse a csv which has spaces for null value (ex "item, ,").
The way to handle null values is obviously to use Nothing but the parser fails because the parsed string is not null but can't be parsed has an Int.
I've added some specs for what I think is the sensible behavior
Case "null::String" and "quoted null::String" and hard to get working together.
I see many possibilities to solve the problem
1 - strip spaces before testing if a field is null in the Maybe code
2 - strip spaces at the parsing level, and maybe add a strip space options in the decodeOptions
3 - change parser to deal with Maybe by default
What do you think ? (I'm happy to help if needed).
The text was updated successfully, but these errors were encountered:
I have a little problem trying to parse a csv which has spaces for null value (ex
"item, ,"
).The way to handle null values is obviously to use
Nothing
but the parser fails because the parsed string is not null but can't be parsed has anInt
.I've added some specs for what I think is the sensible behavior
Case
"null::String"
and"quoted null::String"
and hard to get working together.I see many possibilities to solve the problem
1 - strip spaces before testing if a field is
null
in the Maybe code2 - strip spaces at the parsing level, and maybe add a strip space options in the
decodeOptions
3 - change parser to deal with Maybe by default
What do you think ? (I'm happy to help if needed).
The text was updated successfully, but these errors were encountered: