-
Notifications
You must be signed in to change notification settings - Fork 19
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
Revert unproject_layout
's action; use shape_touched
in column optimization.
#317
Closed
douglasdavis
wants to merge
2
commits into
dask-contrib:main
from
douglasdavis:revert-unproject-layout
Closed
Changes from all commits
Commits
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 |
---|---|---|
|
@@ -95,6 +95,7 @@ def test_json_bytes_no_delim_defined(ndjson_points_file: str) -> None: | |
|
||
|
||
def test_to_and_from_dask_array(daa: dak.Array) -> None: | ||
daa = dak.from_awkward(daa.compute(), npartitions=3) | ||
computed = ak.flatten(daa.points.x.compute()) | ||
x = dak.flatten(daa.points.x) | ||
daskarr = dak.to_dask_array(x) | ||
|
@@ -273,6 +274,8 @@ def test_from_lists(caa_p1: ak.Array) -> None: | |
def test_to_dask_array(daa: dak.Array, caa: dak.Array) -> None: | ||
from dask.array.utils import assert_eq as da_assert_eq | ||
|
||
daa = dak.from_awkward(daa.compute(), npartitions=4) | ||
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. same as above |
||
|
||
da = dak.to_dask_array(dak.flatten(daa.points.x)) | ||
ca = ak.to_numpy(ak.flatten(caa.points.x)) | ||
da_assert_eq(da, ca) | ||
|
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.
the normal
daa
fixture is an array that comes from parquet, and the form ends up getting a mask when we do column selection. We avoid the mask by going ahead and computing the parquet-originating collection and creating a new collection from the concrete result viafrom_awkward
. A bit roundabout but we still test what we mean to test here.