From 5934418d95a450b296ee2d1ee3746f6638093b07 Mon Sep 17 00:00:00 2001 From: Elliana May Date: Thu, 25 Apr 2024 21:32:40 +0800 Subject: [PATCH] remove old match entry --- src/row.rs | 15 --------------- src/types/mod.rs | 1 - 2 files changed, 16 deletions(-) diff --git a/src/row.rs b/src/row.rs index 922c99dd..d1ac7905 100644 --- a/src/row.rs +++ b/src/row.rs @@ -570,21 +570,6 @@ impl<'stmt> Row<'stmt> { _ => unimplemented!("{:?}", unit), }, // TODO: support more data types - // DataType::Dictionary(index_type, _value_type) => match **index_type { - // DataType::Int8 => dict_array_value_to_string::(column, row), - // DataType::Int16 => dict_array_value_to_string::(column, row), - // DataType::Int32 => dict_array_value_to_string::(column, row), - // DataType::Int64 => dict_array_value_to_string::(column, row), - // DataType::UInt8 => dict_array_value_to_string::(column, row), - // DataType::UInt16 => dict_array_value_to_string::(column, row), - // DataType::UInt32 => dict_array_value_to_string::(column, row), - // DataType::UInt64 => dict_array_value_to_string::(column, row), - // _ => Err(ArrowError::InvalidArgumentError(format!( - // "Pretty printing not supported for {:?} due to index type", - // column.data_type() - // ))), - // }, - // NOTE: DataTypes not supported by duckdb // DataType::Date64 => make_string_date!(array::Date64Array, column, row), // DataType::Time32(unit) if *unit == TimeUnit::Second => { diff --git a/src/types/mod.rs b/src/types/mod.rs index d2ad57ff..93222b09 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -187,7 +187,6 @@ impl From<&DataType> for Type { DataType::LargeList(inner) => Self::List(Box::new(Type::from(inner.data_type()))), // DataType::Struct(inner) => Self::Struct, // DataType::Union(_, _) => Self::Union, - // DataType::Dictionary(_, _) => Self::Enum, DataType::Decimal128(..) => Self::Decimal, DataType::Decimal256(..) => Self::Decimal, // DataType::Map(field, ..) => Self::Map,