MCPcopy
hub / github.com/ray-project/ray / generate_sample_physical_plan

Function generate_sample_physical_plan

python/ray/data/tests/test_checkpoint.py:121–131  ·  view source on GitHub ↗
(generate_sample_data_csv, tmp_path)

Source from the content-addressed store, hash-verified

119
120@pytest.fixture
121def generate_sample_physical_plan(generate_sample_data_csv, tmp_path):
122 ctx = ray.data.DataContext.get_current()
123
124 datasource = CSVDatasource(generate_sample_data_csv())
125
126 read_op = Read(datasource, datasource, -1, None)
127 write_path = os.path.join(tmp_path, "output")
128 write_op = Write(ParquetDatasink(write_path), input_dependencies=[read_op])
129 logical_plan = LogicalPlan(write_op, ctx)
130 physical_plan, _ = get_execution_plan(logical_plan)
131 yield physical_plan
132
133
134def _get_batch_based_files(ckpt_path: str, fs) -> List[str]:

Callers

nothing calls this directly

Calls 9

CSVDatasourceClass · 0.90
ReadClass · 0.90
WriteClass · 0.90
ParquetDatasinkClass · 0.90
LogicalPlanClass · 0.90
get_execution_planFunction · 0.90
generate_sample_data_csvFunction · 0.85
get_currentMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…