Skip to content

Apache DataFusion SQL Query Engine

move and rename (#5736)

Remzi Yang9e8d9287242d
diff --git a/datafusion/expr/src/type_coercion.rs b/datafusion/expr/src/type_coercion/mod.rs
similarity index 99%
rename from datafusion/expr/src/type_coercion.rs
rename to datafusion/expr/src/type_coercion/mod.rs
index 740b10e285..73b4a1f93b 100644
--- a/datafusion/expr/src/type_coercion.rs
+++ b/datafusion/expr/src/type_coercion/mod.rs
@@ -31,8 +31,12 @@
//! i64. However, i64 -> i32 is never performed as there are i64
//! values which can not be represented by i32 values.
-use arrow::datatypes::DataType;
+pub mod aggregates;
+pub mod binary;
+pub mod functions;
+pub mod other;
+use arrow::datatypes::DataType;
/// Determine whether the given data type `dt` represents unsigned numeric values.
pub fn is_signed_numeric(dt: &DataType) -> bool {
matches!(
@@ -81,8 +85,3 @@ pub fn is_date(dt: &DataType) -> bool {
pub fn is_utf8_or_large_utf8(dt: &DataType) -> bool {
matches!(dt, DataType::Utf8 | DataType::LargeUtf8)
}
-
-pub mod aggregates;
-pub mod binary;
-pub mod functions;
-pub mod other;