zuston commented on code in PR #2577:
URL: https://github.com/apache/datafusion-comet/pull/2577#discussion_r2434401943
##########
native/core/src/execution/shuffle/shuffle_writer.rs:
##########
@@ -780,8 +780,7 @@ impl ShufflePartitioner for
MultiPartitionShuffleRepartitioner {
// if we wrote a spill file for this partition then copy the
// contents into the shuffle file
if let Some(spill_data) =
self.partition_writers[i].spill_file.as_ref() {
- let mut spill_file =
-
BufReader::new(File::open(spill_data.temp_file.path()).map_err(to_df_err)?);
+ let mut spill_file = BufReader::new(&spill_data.file);
Review Comment:
Nice catch
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]