scovich opened a new pull request, #7276:
URL: https://github.com/apache/arrow-rs/pull/7276

   # Which issue does this PR close?
   
   Closes https://github.com/apache/arrow-rs/issues/7230
   
   # Rationale for this change
    
   JSON data is notoriously non-homogenous, but the JSON parser today is super 
strict -- it requires a concrete schema and parsing fails if any field of any 
row encounters a type conflict. In such cases, it can be preferable for 
incompatible fields to parse as NULL instead of producing a hard error.
   
   # What changes are included in this PR?
   
   Adds a new method 
`arrow_json::reader::ReaderBuilder::with_ignore_type_conflicts`, which can 
override the default behavior of throwing on type conflict, to return NULL 
values instead. 
   
   Plumb that flag through to all nine decoders so they honor it: Null, 
Boolean, Primitive, Decimal, Timestamp, String, List, Map, Struct. 
   
   Add both positive and negative unit tests for each decoder type, to ensure 
the plumbing worked.
   
   # Are there any user-facing changes?
   
   New API method, see above.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to