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

   # Which issue does this PR close?
   
   - Closes #8155 .
   
   # Rationale for this change
   
   cast_to_variant will panic for values of Date64 / Timestamp that can not be 
converted to NaiveDate
   
   # What changes are included in this PR?
   
   add new api :
     `pub fn cast_to_variant_with_options(input: &dyn Array, strict: bool) -> 
Result<VariantArray, ArrowError>`
     - strict = true: Returns errors on conversion failures (default behavior)
     - strict = false: Returns null values for failed conversions 
   add some tests to test non-strict mode.
   # Are these changes tested?
   
   Yes.
   
   # Are there any user-facing changes?
   
   no.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to