Skip to content
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

Add branch_id to distinguish between reusable branches and pipeline breakers #883

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update
  • Loading branch information
phofl committed Feb 21, 2024
commit 391d8f647b5bcca0b6329e46adc4607bc4d1c6c2
4 changes: 0 additions & 4 deletions dask_expr/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ def _tree_repr_lines(self, indent=0, recursive=True):
op = "<series>"
elif is_arraylike(op):
op = "<array>"
elif isinstance(op, BranchId):
if op.branch_id == 0:
continue
op = f" branch_id={op.branch_id}"
header = self._tree_repr_argument_construction(i, op, header)
if self._branch_id.branch_id != 0:
header = self._tree_repr_argument_construction(
Expand Down
2 changes: 1 addition & 1 deletion dask_expr/io/parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ class ReadParquet(PartitionsFiltered, BlockwiseIO):
_absorb_projections = True

def _tree_repr_argument_construction(self, i, op, header):
if i < len(self._parameters) and self._parameters[i] == "_dataset_info_cache":
if self._parameters[i] == "_dataset_info_cache":
# Don't print this, very ugly
return header
return super()._tree_repr_argument_construction(i, op, header)
Expand Down