Repository navigation
Conversation
Replace the Python UDF's single "Mount dataset" property with a
"Mounted dataset variables" list mapping each dataset to a variable. At
runtime each variable holds the dataset's local mount path, so a UDF can
reference several mounted datasets by name (e.g. open(f"{A}/file.csv")).
The engine carries a variable->locator map through PhysicalOp and
WorkerConfig; the worker ensures each dataset is mounted and hands the
paths to the Python process, which injects each as a module-level
variable. The property editor gains a variable/dataset table widget.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01H27sHgS29u2JcLYPPR6Hdx
Automated Reviewer SuggestionsBased on the
|
✅ No material benchmark regressions detected🟢 5 better · 🔴 0 worse · ⚪ 10 noise (<±5%) · 0 without baseline
Baseline detailsLatest main
Raw CSVconfig_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,574.48,200,128000,348,0.212,27400.58,35792.73,35792.73
1,100,10,64,20,2773.38,2000,1280000,721,0.440,135993.82,166333.19,166333.19
2,1000,10,64,20,24623.51,20000,12800000,812,0.496,1228102.29,1265975.96,1265975.96 |
Owner
Author
|
Superseded — this feature is now being contributed directly to apache/texera:main as two balanced PRs: apache#6866 (out-of-pod mount infrastructure) and apache#6867 (platform mount integration), tracked in apache#6606. Closing this fork-staging PR. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changes were proposed in this PR?
Let a Python UDF use datasets mounted on its computing unit by binding each dataset to a variable whose value, at runtime, is the dataset's local mount path — replacing the single "Mount dataset" property with a variable ↔ mounted-dataset list. A UDF can bind several datasets and reference them by name (e.g.
open(f"{A}/file.csv")).mountDatasetstring →datasetVariableslist of{ variableName, datasetPath }; variable names validated as Python identifiers, each path resolved to arepository:commitHashlocator.variableName → locatormap throughPhysicalOpandWorkerConfig; before the Python process starts, the worker ensures each dataset is mounted (idempotent — converges with any explicit per-CU mount) and passes a{ variableName → localPath }map in the startup config.Because the feature is only usable once this lands (mounting alone does nothing without a consumer), the old single-dataset property is replaced outright — no backward-compatibility shim.
Any related issues, documentation, discussions?
Implements apache#6864 · part of apache#6606. Stacks on the "Mount datasets into computing unit" UI (previous PR in this stack).
How was this PR tested?
Compiled (
WorkflowExecutionService/WorkflowOperator) and updated the affected unit tests (PythonWorkflowWorkerStartupConfigSpec,test_run_python_worker.py). Production frontend build passes. End-to-end on minikube: a Python UDF bound a mounted dataset to a variable and read a ~2 GB sharded PyTorch model from the variable's path viatorch.load, with bit-exact output (model_output_sum == expected_sum).Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 4.8