Skip to main content

PipelineStep

Shared request and response schema. Request: Pipeline step accepted in a definition. Exactly one of script or transform must be set. Transform configuration refers to inputs and outputs by port key, and transform steps cannot use secrets. Response: Pipeline step returned in a definition. Exactly one of script or transform is set. Transform configuration refers to inputs and outputs by port key, and transform steps do not use secrets.

nameName (string)required

Step name

alias object
anyOf
string
description object

Step-owned description, independent of the referenced Code's description so steps sharing one Code can be labeled distinctly.

anyOf
string
script object

Code resource ID to execute (code step)

anyOf
string
transform object

Native transform spec (transform step)

anyOf
oprequired

Possible values: [aggregate, join, rename_cast, select_filter, union]

versionVersion (integer)
Constant value: 1
Default value: 1
config objectrequired

Config for the aggregate op: group-by + allowlisted aggregate functions. An empty group_by aggregates the whole input to a single row. input is a port key.

inputInput (string)required

Input port key

group_bystring[]

Grouping columns (empty = whole-input aggregate)

aggregations object[]required

Aggregations (non-empty)

  • Array [
  • functionFunction (string)required

    Allowlisted aggregate function

    Possible values: [sum, count, avg, min, max]

    column object

    Aggregated column (omit only for count)

    anyOf
    string
    aliasAlias (string)required

    Output column name

  • ]
  • inputs object

    Input dataset mapping

    anyOf
    object
    outputs object

    Output dataset mapping

    anyOf
    object
    dependencies object

    List of dependent step names

    anyOf
  • Array [
  • string
  • ]
  • options object
    anyOf
    object
    secrets object

    Secret values to inject into contexts['secrets']

    anyOf
  • Array [
  • nameName (string)required

    contexts['secrets'] key the step reads

    refRef (string)required

    Secret reference, e.g. secret://secret./token

  • ]
  • PipelineStep
    {
    "name": "string",
    "alias": "string",
    "description": "string",
    "script": "string",
    "transform": {
    "version": 1,
    "op": "select_filter",
    "config": {
    "input": "string",
    "columns": [
    {
    "name": "string",
    "alias": "string"
    }
    ],
    "where": {
    "kind": "and",
    "conditions": [
    {
    "kind": "condition",
    "column": "string",
    "operator": "eq"
    },
    null
    ]
    }
    }
    },
    "inputs": {},
    "outputs": {},
    "dependencies": [
    "string"
    ],
    "options": {},
    "secrets": [
    {
    "name": "string",
    "ref": "string"
    }
    ]
    }