Reading json map
with non-nullable value schema doesn't error if values are actually null
#6391
Labels
map
with non-nullable value schema doesn't error if values are actually null
#6391
Describe the bug
If you use an
arrow_json::ReaderBuilder
to read a json file, and specify a schema that includes a map that shouldn't allow nullable values, you can still read files that have nulls in the actual json map.To Reproduce
And use this json file:
Running produces:
Note I've included the
str
field so you can easily see that the right thing happens if you change your .json file toYou will get:
Expected behavior
Expect an error similar to what happens when
str
field is set to null.Additional context
The text was updated successfully, but these errors were encountered: