Skip to content

Commit efcc216

Browse files
authored
Minor: Remove unneccessary vec! in SortMergeJoinStream initialization (apache#18430)
## Which issue does this PR close? <!-- We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes apache#123` indicates that this PR will close issue apache#123. --> Remove a unnecessary vec allocation in SortMergeJoinStream initialization ## Rationale for this change Remove a unnecessary vec allocation in SortMergeJoinStream initialization ## What changes are included in this PR? Remove a unnecessary vec allocation in SortMergeJoinStream initialization ## Are these changes tested? Covered by existing ## Are there any user-facing changes? No
1 parent 488b024 commit efcc216

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • datafusion/physical-plan/src/joins/sort_merge_join

datafusion/physical-plan/src/joins/sort_merge_join/stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ impl Stream for SortMergeJoinStream {
604604
// Append filtered batch to the output buffer
605605
self.output = concat_batches(
606606
&self.schema(),
607-
vec![&self.output, &out_filtered_batch],
607+
[&self.output, &out_filtered_batch],
608608
)?;
609609

610610
// Send to output if the output buffer surpassed the `batch_size`

0 commit comments

Comments
 (0)