-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PERF] Remove calls to
remote_len_partition
(#1660)
This PR refactors `PartitionSet.len_of_partitions` to avoid usage of our `remote_len_partition` Ray remote function, which has been observed to cause problems when run on dataframes with large amounts of spilling. A few refactors had to be performed to achieve this: 1. The `RayPartitionSet` was refactored to hold `RayMaterializedResult` objects instead of just raw `ray.ObjectRef[Table]`. - This allows us to access the `.metadata()` method which holds the length of each partition. - To access the `ray.ObjectRef[Table]`, we can use the `.partition()` method which holds the partition 2. As part of (1), `PartitionSet.set_partition` had to be refactored to take as input a `MaterializedResult` instead of a plain `PartitionT` 3. On the execution end, we refactored the code mainly around `MaterializedPhysicalPlan`, which now yields `MaterializedResult[PartitionT]` instead of just `PartitionT`, when indicating "done" tasks. --------- Co-authored-by: Jay Chia <[email protected]@users.noreply.github.com>
- Loading branch information
Showing
10 changed files
with
114 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.