Skip to main content
Actions

Dataset Write

dataset_write
Aliases:action_dataset_write

Write, append, or upsert Parquet, CSV, or JSONL outputs into a Project or Workspace-shared Dataset.

Inputs1
Outputs1
Settings10
Field AccessState Key · {{Template}}
Examples2

About this Node

Writes, appends, or upserts tabular rows (JSON arrays/objects) or staged `FileRef` artifacts from `input_key` into a governed Project or Workspace-shared Dataset in Parquet, CSV, or JSONL format. Supports templated partition paths and filenames (`{{key}}`) and emits the written `FileRef` alongside row count, inferred schema, and operation stats.

Ports & Branches

Inputs (1)
inPort 0Inbound execution flow
Outputs (1)
outPort 1Outbound execution flow with write summary

How this Node Reads Data

Input Access Field Example Description
Source Data Key State Key input_key enriched_records Reads the tabular rows array, object, or `FileRef` stored at `input_key` in the node's incoming state.
Partition & Filename Templates {{Template}} filename_template dt={{report_date}} / part-{{batch_id}} Interpolates `{{key}}` placeholders inside `partition_path` and `filename_template`.

State Keys Written (Outputs)

Key Pattern Type Role Description
{output_key} FileRef Primary `FileRef` handle pointing to the newly persisted dataset object.
{output_key}_rows_written integer Secondary Number of rows written or merged by this operation.
{output_key}_schema array<object> Secondary Column names and types of the written tabular dataset file.
{output_key}_stats object Secondary Detailed write statistics including row delta, previous partition count, and byte size.

Tips & Best Practices

  • Datasets must be created first in Storage before referencing their `dataset_id` in strict run-ready mode.
  • Avoid dynamic `..` segments in `partition_path`—all paths are strictly sandboxed within the dataset root.

Commonly Paired With