Skip to content

Commit 6693513

Browse files
committed
enable union test
1 parent 1c73aef commit 6693513

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: crates/duckdb/src/test_all_types.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ fn test_large_arrow_types() -> crate::Result<()> {
2121

2222
fn test_with_database(database: &Connection) -> crate::Result<()> {
2323
// uhugeint, time_tz, and dec38_10 aren't supported in the duckdb arrow layer
24-
// union is currently blocked by https://github.com/duckdb/duckdb/pull/11326
25-
let excluded = ["uhugeint", "time_tz", "dec38_10", "union"];
24+
let excluded = ["uhugeint", "time_tz", "dec38_10"];
2625

2726
let mut binding = database.prepare(&format!(
2827
"SELECT * EXCLUDE ({}) FROM test_all_types()",

Diff for: crates/duckdb/src/types/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ impl From<&DataType> for Type {
205205
.collect(),
206206
),
207207
DataType::LargeList(inner) => Self::List(Box::new(Type::from(inner.data_type()))),
208-
// DataType::Union(_, _) => Self::Union,
208+
DataType::Union(_, _) => Self::Union,
209+
DataType::Dictionary(_, _) => Self::Enum,
209210
DataType::Decimal128(..) => Self::Decimal,
210211
DataType::Decimal256(..) => Self::Decimal,
211212
DataType::Map(field, ..) => {

0 commit comments

Comments
 (0)