Open maxhillaert opened 1 year ago
Hi @maxhillaert. You are not missing anything.
If your use case requires to distinguish between empty strings and null strings, you have to manage this on your side by using a marker string for null values and workaround it.
Watch out as some common null marker strings are treated as empty values so you would run into the same issue. See #1244 for more information.
Consider the java test below.
Null values are written as "" and read back as empty string "" , which is the missingValueIndicator for the StringParser. This kind of asymmetry where both null and "" are written as "" destroys the semantical difference between an empty value or a non existent value. Semantically, empty string is not a missing value per se. Empty string has to be distinguished from null.
The missingValueIndicator in StringParser is always "", so i don't see a way around this without just doing this handling myself by using "" or something in my own converters.
Am I missing something?