Skip to content

Commit 960ebc8

Browse files
committed
skip ahdnling of dictionary types in list types, as its out of scope
1 parent 6bfb8ac commit 960ebc8

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
@@ -348,13 +348,7 @@ fn encode_value(
348348
},
349349

350350
DataType::List(field) | DataType::FixedSizeList(field, _) | DataType::LargeList(field) => {
351-
// Extract the inner type, handling dictionaries by getting the value type
352-
let field_type = match field.data_type() {
353-
DataType::Dictionary(_, value_type) => value_type.as_ref(),
354-
data_type => data_type,
355-
};
356-
357-
match field_type {
351+
match field.data_type() {
358352
DataType::Null => encoder.encode_field(&None::<i8>)?,
359353
DataType::Boolean => encoder.encode_field(&get_bool_list_value(arr, idx))?,
360354
DataType::Int8 => encoder.encode_field(&get_i8_list_value(arr, idx))?,

0 commit comments

Comments
 (0)