Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Apr 16, 2024
1 parent 83d5782 commit e4e0f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datafusion/physical-plan/src/sorts/sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ pub(crate) fn sort_batch(
.map(|c| take(c.as_ref(), &indices, None))
.collect::<Result<_, _>>()?;

let options = RecordBatchOptions::new().with_row_count(Some(batch.num_rows()));
let options = RecordBatchOptions::new().with_row_count(Some(indices.len()));
Ok(RecordBatch::try_new_with_options(
batch.schema(),
columns,
Expand Down

0 comments on commit e4e0f82

Please sign in to comment.