Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions vortex-duckdb/src/exporter/fixed_size_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub(crate) fn new_exporter(
array: &FixedSizeListArray,
cache: &ConversionCache,
) -> VortexResult<Box<dyn ColumnExporter>> {
let elements_exporter = new_array_exporter(array.elements(), cache)?;
let elements_exporter = new_array_exporter(array.elements().to_canonical().as_ref(), cache)?;

Ok(Box::new(FixedSizeListExporter {
validity: array.validity_mask(),
Expand Down Expand Up @@ -69,13 +69,7 @@ impl ColumnExporter for FixedSizeListExporter {
self.elements_exporter
.export(offset * list_size, len * list_size, &mut elements_vector)?;

// TODO(connor): We must flatten the child vector to ensure any child dictionary views
// (namely UTF-8 string views in dictionaries) are materialized.
// See https://github.com/vortex-data/vortex/pull/4610#issuecomment-3286676825 for a
// detailed explanation on why we need this for now.
elements_vector.flatten((len * list_size) as u64);

Ok(())
Ok(())
}
}

Expand Down
Loading