We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efa5e10 commit 6bfb8acCopy full SHA for 6bfb8ac
datafusion-postgres/src/datatypes.rs
@@ -679,14 +679,8 @@ pub(crate) fn df_schema_to_pg_fields(
679
.iter()
680
.enumerate()
681
.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
-
688
// Convert to PostgreSQL type using the unwrapped type
689
- let pg_type = into_pg_type(data_type)?;
+ let pg_type = into_pg_type(f.data_type())?;
690
691
Ok(FieldInfo::new(
692
f.name().into(),
0 commit comments