EXTEND

All functions > ARRAY OF ROWS > EXTEND

Adds computed feature fields to a base row or array of rows with field bindings

Signatures

Returns: Base with additional computed fields

EXTEND(base: ROW or ARRAY<ROW>, features: ARRAY<FEATURE>, as_fields: ARRAY<FIELD>, binding_fields: ARRAY<FIELD>, binding_features: ARRAY<FEATURE>) → ROW or ARRAY[ROW]
sql
ParameterTypeRequiredDescription
baseROW or ARRAY<ROW>YesBase row or array of rows to add fields to
featuresARRAY<FEATURE>YesArray of features to compute and add as fields
as_fieldsARRAY<FIELD>YesArray of field names for the new features
binding_fieldsARRAY<FIELD>YesArray of field names from base to bind to features
binding_featuresARRAY<FEATURE>YesArray of feature names to bind the fields to

Notes

  • Allows adding computed features as new fields to existing rows
  • BINDING clause maps base fields to feature inputs
  • Features are computed using the bound field values
  • Works with both single rows and arrays of rows
  • New field names must not conflict with existing fields
Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19