Skip to content

Commit

Permalink
Fix repeating number of rows
Browse files Browse the repository at this point in the history
  • Loading branch information
Dandandan committed Apr 18, 2021
1 parent c82efe7 commit f93a7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/datafusion/src/physical_plan/cartesian_join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ fn build_batch(
.iter()
.map(|arr| {
let scalar = ScalarValue::try_from_array(arr, i)?;
Ok(scalar.to_array_of_size(left.num_rows()))
Ok(scalar.to_array_of_size(batch.num_rows()))
})
.collect::<Result<Vec<_>>>()
.map_err(|x| x.into_arrow_external_error())?;
Expand Down

0 comments on commit f93a7d3

Please sign in to comment.