Dataset Read
action_dataset_readEmit files or partitions from a Project or Workspace-shared Dataset as FileRef handles.
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
inPort 0Inbound execution flowoutPort 1Outbound execution flow emitting FileRef handlesHow 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
Settings Parameters (8)
Configuration schema synchronized with the workflow catalog
| Field | Type | Default | Allowed Options | Description |
|---|---|---|---|---|
dataset_id |
string |
— |
— | UUID of the target Dataset |
dataset_name |
string |
— |
— | Display name of the target Dataset |
dataset_scope |
string |
project |
project, workspace | — |
dataset_format |
string |
parquet |
parquet, csv, jsonl | — |
partition_filter |
string |
"" |
— | Optional relative prefix or glob filter (supports {{context}} interpolation) |
emit_mode |
string |
all_files |
all_files, latest_file, first_file | — |
fail_if_empty |
boolean |
true |
— | — |
output_key |
string |
dataset_files |
— | — |
Read Latest Daily Parquet Partition
Fetch the newest Parquet snapshot from a Project dataset and pass its `FileRef` into Python Script for aggregation.
Node Configuration
{
"Id": "dataset_read_1",
"Type": "dataset_read",
"Config": {
"dataset_id": "ds-daily-sales",
"dataset_name": "Daily Sales",
"dataset_scope": "project",
"dataset_format": "parquet",
"partition_filter": "dt={{report_date}}",
"emit_mode": "latest_file",
"fail_if_empty": true,
"output_key": "sales_snapshot"
}
}Sample Input State
{
"report_date": "2026-11-22"
}Expected Output State
{
"sales_snapshot": { "type": "file_ref", "filename": "part-001.parquet", "size_bytes": 192400 },
"sales_snapshot_files": [ { "type": "file_ref", "filename": "part-001.parquet" } ],
"sales_snapshot_count": 1
}Tip: Wire `{output_key}_count` into a Condition node when `fail_if_empty: false` to gracefully skip empty partitions.
Fan-Out Over All JSONL Shard Files
List every shard in a Workspace-shared JSONL dataset and feed the resulting array into Parallel Fan-out.
Node Configuration
{
"Id": "dataset_read_1",
"Type": "dataset_read",
"Config": {
"dataset_id": "ds-vendor-events",
"dataset_name": "Vendor Events",
"dataset_scope": "workspace",
"dataset_format": "jsonl",
"emit_mode": "all_files",
"fail_if_empty": false,
"output_key": "event_files"
}
}Sample Input State
{}Expected Output State
{
"event_files": [ { "type": "file_ref", "filename": "part-01.jsonl" }, { "type": "file_ref", "filename": "part-02.jsonl" } ],
"event_files_count": 2
}