-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Data] Update ExecutionPlan.execute_to_iterator()
to return RefBundles
instead of (Block, BlockMetadata)
#46575
Merged
bveeramani
merged 41 commits into
ray-project:master
from
scottjlee:0710-execiter-bundle
Jul 16, 2024
Merged
Changes from 40 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
c313a52
add iter_internal_block_refs
09b905d
Merge branch 'master' into 0701-count
scottjlee 5ef8041
return iterator over refbundles
172e423
Merge branch '0701-count' of https://github.com/scottjlee/ray into 07…
374898b
fix docs
b0ec894
update consumption api usage
f0b49f1
fix
aa368d4
clean up
ab8d6ed
comments
128614d
comments
65c3f4e
lint
7956f35
Merge branch 'master' into 0701-count
958d306
fix tests
d6a1d79
Merge branch '0701-count' of https://github.com/scottjlee/ray into 07…
87151ee
update tests
6d15acd
replace get_internal_block_refs usages
3e4d9b0
add deprecation warning
3ea9759
Merge branch 'master' into 0701-count
b6df226
snapshot metadata only
70f82de
clean up
97d177b
Merge branch '0701-count' into 0705-get_internal_block_Refs
f520c62
update parquet test
629d6bb
only cache metadata once iteration terminates
1abdb63
Merge branch '0701-count' into 0705-get_internal_block_refs
7c2710a
log deprecation warning
52944e9
Merge branch 'master' into 0705-get_internal_block_refs
a6e99c2
clean up
789037e
Merge branch '0705-get_internal_block_refs' into 0710-execiter-bundle
24c65bd
replace in execution path
246a170
update iter path
88a8f4d
fix ref hit test
595b124
Merge branch 'master' into 0710-execiter-bundle
93ca668
fix merge
9e3d280
clean up
1242a58
Merge branch 'master' into 0710-execiter-bundle
a1e2c28
clean up
62216d0
fix tests
047e381
Merge branch 'master' into 0710-execiter-bundle
95593e4
comments
a6b554d
Merge branch 'master' into 0710-execiter-bundle
c905a1c
remove dead code
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,3 +134,13 @@ def _ref_bundles_iterator_to_block_refs_list( | |
return [ | ||
block_ref for ref_bundle in ref_bundles for block_ref in ref_bundle.block_refs | ||
] | ||
|
||
|
||
def _bundle_to_block_md_iterator( | ||
ref_bundles: Iterator[RefBundle], | ||
) -> Iterator[Tuple[ObjectRef[Block], BlockMetadata]]: | ||
"""Convert an iterator of RefBundles to an iterator of | ||
`(Block object reference, corresponding BlockMetadata)`.""" | ||
for ref_bundle in ref_bundles: | ||
for block_ref, metadata in ref_bundle.blocks: | ||
yield block_ref, metadata | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't called anywhere. Let's remove it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks, removed. |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
found that the tests were not being run under data tests, so updated the tag here.