Skip to content

Python UDF dataset-variable bindings #6864

Closed
Closed

Description

@aicam

Task Summary

User-facing step of the dataset-mounting feature (part of #6606). 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. Replaces the single "Mount dataset" property with a variable ↔ mounted-dataset list, so a UDF can reference several mounted datasets by name (e.g. open(f"{A}/file.csv")).

  • Operator — replace the mountDataset string with a datasetVariables list of { variableName, datasetPath }; variable names validated as Python identifiers, each path resolved to a repository:commitHash locator.
  • Engine — carry a variableName → locator map through PhysicalOp and WorkerConfig; 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.
  • Python runtime — inject each binding into the UDF module as a module-level variable holding its local path.
  • Property editor — a table widget for variable/dataset rows, options drawn from the datasets mounted on the active computing unit.

The feature is only usable once this lands (mounting alone does nothing without a consumer), so the old single-dataset property is replaced outright — no backward-compatibility shim is needed.

Task Type

  • Other (feature implementation)

Activity

  1. added theissue type on Jul 24, 2026
  2. aicam commented on Jul 24, 2026

    @aicam
    ContributorAuthor

    Folded into the two-PR structure (see #6606): the mount API, UI, and UDF variable bindings now ship together as Platform dataset mount integration (#6863). Closing as superseded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions