Skip to content

Add Column Node

Data/Database/Schema

Adds a column from a typed SQL expression or creates an empty vector column with a fixed dimension. Vector dimensions must match the embedding model's output length. Existing rows get NULL vectors until embeddings are written.

add_column_local_dbdata
Inputs6
Outputs2
Security exposureUnrated
Packagedata

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

No score metadata has been set for this node yet.

Input Pins

6

Input

Execution
exec_in

Database

Struct
database

Database Connection Reference

NodeDBConnectionNodeDBConnection1 fields
cache_keystringrequired
Schema enforced

Column Name

String
column_name

Name of the column to add

Default new_column

SQL Expression

String
sql_expression

Typed SQL expression used to populate existing rows. Examples: 0, '', CAST(NULL AS STRING). Flow-Like requires an explicit type for NULL. Supported types: int, bigint, float, double, string, binary, boolean, date, timestamp.

Default CAST(NULL AS STRING)

Mode

String
mode

SQL Expression computes values from SQL Expression. Vector creates a nullable Float32 vector column and ignores SQL Expression.

Default SQL Expression
SQL ExpressionVector

Vector Dimensions

Integer
vector_size

Required in Vector mode: the positive number of values in each embedding. Set this to the embedding model's output length. Ignored in SQL Expression mode.

Default 0

Output Pins

2

Done

Execution
exec_out

Done altering schema

Schema

Struct
schema

Updated database schema

TableSchemaTableSchema2 fields
fieldsArray<TableField>required

The columns, in storage order.

itemsTableFieldarray item

One column of a table.

namestringrequired

Column name.

data_typevaluerequired

Arrow data type: a bare name such as `"Utf8"` or `"Int64"` for simple types, an object for nested ones such as lists and structs.

nullablebooleanrequired

Whether the column accepts nulls.

dict_idinteger | null

Dictionary id, set only on dictionary-encoded columns.

format int64
dict_is_orderedboolean | null

Whether the dictionary is ordered, set only on dictionary-encoded columns.

+1 more fields
metadatavalue

Table level key/value metadata, defined by whoever wrote the table.

default null

Node Info

Internal name
add_column_local_db
Category
Data/Database/Schema
Version
3