We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7979db1 commit 0565d60Copy full SHA for 0565d60
1 file changed
native/spark-expr/src/conversion_funcs/cast.rs
@@ -966,6 +966,10 @@ fn cast_array(
966
use DataType::*;
967
let from_type = array.data_type().clone();
968
969
+ if from_type.equals_datatype(to_type) {
970
+ return Ok(Arc::new(array));
971
+ }
972
+
973
let array = array_with_timezone(array, cast_options.timezone.clone(), Some(to_type))?;
974
let eval_mode = cast_options.eval_mode;
975
0 commit comments