Skip to main content
Version: 0.2

RandomBool

Generate random boolean values.

Parameters​

NameDescriptionDefaultRequiredSupported DB types
columnThe name of the column to be affectedYesbool
keep_nullIndicates whether NULL values should be replaced with transformed values or nottrueNo-
engineThe engine used for generating the values [random, hash]. Use hash for deterministic generationrandomNo-

Description​

The RandomBool transformer generates a random boolean value. The behaviour for NULL values can be configured using the keep_null parameter. The engine parameter allows you to choose between random and hash engines for generating values. Read more about the engines in the Transformation engines section.

Example: Generate a random boolean for a column​

In the following example, the RandomBool transformer generates a random boolean value for the salariedflag column.

RandomBool transformer example
- schema: "humanresources"
name: "employee"
transformers:
- name: "RandomBool"
params:
column: "salariedflag"

Result

ColumnOriginalValueTransformedValue
salariedflagtf
Tools and expertise for reproducible, production-like environments.
Copyright © 2026 Greenmask, Inc.