Skip to content

Commit 842e4a9

Browse files
fix format.
Signed-off-by: my-vegetable-has-exploded <[email protected]>
1 parent 149abd5 commit 842e4a9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

python/ray/data/_internal/plan.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
from ray._private.internal_api import get_memory_info_reply, get_state_from_address
1010
from ray.data._internal.execution.interfaces import RefBundle
1111
from ray.data._internal.logical.interfaces import SourceOperator
12-
from ray.data._internal.logical.interfaces.operator import Operator
12+
from ray.data._internal.logical.interfaces.logical_operator import LogicalOperator
1313
from ray.data._internal.logical.interfaces.logical_plan import LogicalPlan
14+
from ray.data._internal.logical.interfaces.operator import Operator
1415
from ray.data._internal.logical.operators.read_operator import Read
1516
from ray.data._internal.stats import DatasetStats
1617
from ray.data._internal.util import unify_ref_bundles_schema
@@ -134,7 +135,7 @@ def generate_plan_string(
134135
):
135136
"""Traverse (DFS) the Plan DAG and
136137
return a string representation of the operators."""
137-
if (including_source == False) and isinstance(op, SourceOperator):
138+
if not including_source and isinstance(op, SourceOperator):
138139
return curr_str, depth
139140

140141
curr_max_depth = depth

python/ray/data/dataset.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5965,6 +5965,7 @@ def stats(self) -> str:
59655965
return self._write_ds.stats()
59665966
return self._get_stats_summary().to_string()
59675967

5968+
@PublicAPI(api_group=IM_API_GROUP)
59685969
def explain(self) -> str:
59695970
"""Returns a string containing logical plan and physical plan.
59705971

0 commit comments

Comments
 (0)