Skip to content

Commit 6bfb8ac

Browse files
committed
remove manual Dictionary type handling, as its now handled in into_pg_type
1 parent efa5e10 commit 6bfb8ac

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

datafusion-postgres/src/datatypes.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -679,14 +679,8 @@ pub(crate) fn df_schema_to_pg_fields(
679679
.iter()
680680
.enumerate()
681681
.map(|(idx, f)| {
682-
// Get the actual data type, unwrapping any dictionary type
683-
let data_type = match f.data_type() {
684-
DataType::Dictionary(_, value_type) => value_type.as_ref(),
685-
other_type => other_type,
686-
};
687-
688682
// Convert to PostgreSQL type using the unwrapped type
689-
let pg_type = into_pg_type(data_type)?;
683+
let pg_type = into_pg_type(f.data_type())?;
690684

691685
Ok(FieldInfo::new(
692686
f.name().into(),

0 commit comments

Comments
 (0)