Skip to content

Commit

Permalink
Adapt imports for float functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mattharder91 committed May 3, 2024
1 parent 70d403d commit b90aa8f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/src/execution/datafusion/expressions/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,9 @@ use arrow::{
util::display::FormatOptions,
};
use arrow_array::{
<<<<<<< HEAD
types::{Int16Type, Int32Type, Int64Type, Int8Type},
Array, ArrayRef, BooleanArray, GenericStringArray, OffsetSizeTrait, PrimitiveArray, Float64Array,
=======
Array, ArrayRef, BooleanArray, Float32Array, Float64Array, GenericStringArray, OffsetSizeTrait,
>>>>>>> 334bf0c (Add macro to handle both float types)
PrimitiveArray,
};
use arrow_schema::{DataType, Schema};
use chrono::{TimeZone, Timelike};
Expand Down Expand Up @@ -266,7 +263,7 @@ impl Cast {
}
(DataType::Float32, DataType::LargeUtf8) => {
Self::spark_cast_float32_to_utf8::<i64>(&array, self.eval_mode)?
}
}
_ => {
// when we have no Spark-specific casting we delegate to DataFusion
cast_with_options(&array, to_type, &CAST_OPTIONS)?
Expand Down

0 comments on commit b90aa8f

Please sign in to comment.