Skip to main content
Actions

Dataset Read

dataset_read
Aliases:action_dataset_read

Emit files or partitions from a Project or Workspace-shared Dataset as FileRef handles.

Inputs1
Outputs1
Settings8
Field Access{{Template}}
Examples2

About this Node

Lists objects inside a governed Project or Workspace-shared Dataset—optionally filtered by partition prefix—and emits ordered `FileRef` handles without copying large file contents into workflow state. Supports returning all matching files (`all_files`), only the most recent file (`latest_file`), or the first file (`first_file`), along with secondary count and full-list keys.

Ports & Branches

Inputs (1)
inPort 0Inbound execution flow
Outputs (1)
outPort 1Outbound execution flow emitting FileRef handles

How this Node Reads Data

Input Access Field Example Description
Partition Filter Template {{Template}} partition_filter dt={{report_date}} Optional partition path prefix supporting `{{key}}` interpolation to narrow listed files (e.g., `dt={{run_date}}`).

State Keys Written (Outputs)

Key Pattern Type Role Description
{output_key} FileRef | array<FileRef> Primary Single `FileRef` (`latest_file` / `first_file`) or ordered list of `FileRef` handles (`all_files`).
{output_key}_files array<FileRef> Secondary Complete ordered list of all matching `FileRef` objects regardless of `emit_mode`.
{output_key}_count integer Secondary Total number of matching dataset files discovered.

Tips & Best Practices

  • Dataset Read emits lightweight `FileRef` pointers rather than loading raw bytes into workflow history.
  • Use `latest_file` when connecting directly to an LLM node's `file_input_keys` or single-file Python Script.

Commonly Paired With