Skip to content

Commit

Permalink
fix panix unsorted ipc projection
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Dec 8, 2021
1 parent 9220491 commit 2f24dc1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions polars/polars-io/src/ipc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,15 @@ impl<R: Read + Seek> IpcReader<R> {
) -> Result<DataFrame> {
let rechunk = self.rechunk;
let metadata = read::read_file_metadata(&mut self.reader)?;
let reader =
read::FileReader::new(&mut self.reader, metadata, projection.map(|x| x.to_vec()));
let reader = read::FileReader::new(
&mut self.reader,
metadata,
projection.map(|x| {
let mut x = x.to_vec();
x.sort_unstable();
x
}),
);

finish_reader(
reader,
Expand Down

0 comments on commit 2f24dc1

Please sign in to comment.