Skip to content

Commit

Permalink
Update set_ops.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rluvaton authored Jan 1, 2025
1 parent cffa15b commit e39149a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datafusion/functions-nested/src/set_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ fn general_array_distinct<OffsetSize: OffsetSizeTrait>(
// Add same offset for null
offsets.push(last_offset);
continue;
}
};
let values = converter.convert_columns(&[arr])?;
// sort elements in list and remove duplicates
let rows = values.iter().sorted().dedup().collect::<Vec<_>>();
Expand Down

0 comments on commit e39149a

Please sign in to comment.