Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: jayzhan211 <[email protected]>
  • Loading branch information
jayzhan211 committed Nov 4, 2024
1 parent ce1dc56 commit 3a578de
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 147 deletions.
29 changes: 0 additions & 29 deletions datafusion/common/src/types/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,32 +433,3 @@ impl NativeType {
true
}
}

// Singleton instances
// TODO: Replace with LazyLock
// pub static LOGICAL_STRING: OnceLock<LogicalTypeRef> = OnceLock::new();
// pub static LOGICAL_FLOAT16: OnceLock<LogicalTypeRef> = OnceLock::new();
// pub static LOGICAL_FLOAT32: OnceLock<LogicalTypeRef> = OnceLock::new();
// pub static LOGICAL_FLOAT64: OnceLock<LogicalTypeRef> = OnceLock::new();

// // Usage functions
// pub fn logical_string() -> LogicalTypeRef {
// Arc::clone(LOGICAL_STRING.get_or_init(|| Arc::new(NativeType::Utf8)))
// }

// pub fn logical_float16() -> LogicalTypeRef {
// Arc::clone(LOGICAL_FLOAT16.get_or_init(|| Arc::new(NativeType::Float16)))
// }

// pub fn logical_float32() -> LogicalTypeRef {
// Arc::clone(LOGICAL_FLOAT32.get_or_init(|| Arc::new(NativeType::Float32)))
// }

// pub fn logical_float64() -> LogicalTypeRef {
// Arc::clone(LOGICAL_FLOAT64.get_or_init(|| Arc::new(NativeType::Float64)))
// }
// impl From<&DataType> for NativeType {
// fn from(value: &DataType) -> Self {
// value.clone().into()
// }
// }
1 change: 0 additions & 1 deletion datafusion/expr-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ pub mod accumulator;
pub mod columnar_value;
pub mod groups_accumulator;
pub mod interval_arithmetic;
pub mod logical_type;
pub mod operator;
pub mod signature;
pub mod sort_properties;
Expand Down
117 changes: 0 additions & 117 deletions datafusion/expr-common/src/logical_type.rs

This file was deleted.

0 comments on commit 3a578de

Please sign in to comment.