Skip to content

Commit

Permalink
enable union test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mause committed Jun 8, 2024
1 parent c175a8a commit d4795dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions crates/duckdb/src/test_all_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ fn test_large_arrow_types() -> crate::Result<()> {

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

let mut binding = database.prepare(&format!(
"SELECT * EXCLUDE ({}) FROM test_all_types()",
Expand Down
3 changes: 2 additions & 1 deletion crates/duckdb/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ impl From<&DataType> for Type {
.collect(),
),
DataType::LargeList(inner) => Self::List(Box::new(Type::from(inner.data_type()))),
// DataType::Union(_, _) => Self::Union,
DataType::Union(_, _) => Self::Union,
DataType::Dictionary(_, _) => Self::Enum,
DataType::Decimal128(..) => Self::Decimal,
DataType::Decimal256(..) => Self::Decimal,
DataType::Map(field, ..) => {
Expand Down

0 comments on commit d4795dd

Please sign in to comment.