Skip to main content
Version: 0.2

SetNull

Set NULL value to a column.

Parameters​

NameDescriptionDefaultRequiredSupported DB types
columnThe name of the column to be affectedYesany

Description​

The SetNull transformer assigns NULL value to a column. It has no other parameters. This transformer generates warning if the affected column has NOT NULL constraint.

note

There is no Nullify transformer. Use SetNull to replace values with NULL.

NULL constraint violation warning
{
"hash": "5a229ee964a4ba674a41a4d63dab5a8c",
"meta": {
"ColumnName": "jobtitle",
"ConstraintType": "NotNull",
"ParameterName": "column",
"SchemaName": "humanresources",
"TableName": "employee",
"TransformerName": "SetNull"
},
"msg": "transformer may produce NULL values but column has NOT NULL constraint",
"severity": "warning"
}

Example: Set NULL value to jobtitle column​

SetNull transformer example
dump:
transformation:
- schema: "humanresources"
name: "employee"
transformers:
- name: "SetNull"
params:
column: "jobtitle"
Expected result

| column name | original value | transformed |
|-------------|-------------------------|-------------|
| jobtitle | Chief Executive Officer | NULL |
Tools and expertise for reproducible, production-like environments.
Copyright © 2026 Greenmask, Inc.
Privacy Policy