Skip to content

Commit efa5e10

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

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

datafusion-postgres/src/datatypes.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -765,12 +765,7 @@ where
765765
if let Some(ty) = pg_type_hint {
766766
Ok(ty.clone())
767767
} else if let Some(infer_type) = inferenced_type {
768-
// If inferenced type is a dictionary, use the value type
769-
let actual_type = match infer_type {
770-
DataType::Dictionary(_, value_type) => value_type.as_ref(),
771-
other_type => other_type,
772-
};
773-
into_pg_type(actual_type)
768+
into_pg_type(infer_type)
774769
} else {
775770
Err(PgWireError::UserError(Box::new(ErrorInfo::new(
776771
"FATAL".to_string(),

0 commit comments

Comments
 (0)