parthchandra commented on code in PR #1385:
URL: https://github.com/apache/datafusion-comet/pull/1385#discussion_r1950914558
##########
native/spark-expr/src/conversion_funcs/cast.rs:
##########
@@ -872,6 +872,13 @@ fn cast_array(
let array = array_with_timezone(array, cast_options.timezone.clone(),
Some(to_type))?;
let from_type = array.data_type().clone();
+ let native_cast_options: CastOptions = CastOptions {
+ safe: !matches!(cast_options.eval_mode, EvalMode::Ansi), // take safe
mode from cast_options passed
+ format_options: FormatOptions::new()
Review Comment:
I think one can use a `default` value defined for `FormatOptions` here
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]