This documentation is available to agents as Markdown at https://docs.synthesized.io/tdk/latest/user_guide/040_reference/data_types.md. For the complete documentation index, see llms.txt.

Data Types

The platform reads each column’s SQL type from the database. Transformers and the rules that pick them work with a few broad type categories, and number generators can be told which number type to produce.

Type categories

Each transformer lists the categories of column it accepts. You see them in the Columns column of Transformers, and as data_type in the conditions of default rules (DataTypeCondition).

Category Used for

TEXT

Character columns. For example, person_generator, format_preserving_hashing and redaction accept text only.

NUMERIC

Number columns. For example, noising, continuous_generator and unique_hashing.

DATE

Date and time columns. For example, date_generator and date_time_unique_hashing.

BOOLEAN

Boolean columns. For example, constant_boolean.

ANY

Any column type. For example, passthrough, null_generator and categorical_generator.

To pick a transformer by the exact SQL type instead, use a sql_type matcher with type names such as INTEGER, VARCHAR or TIMESTAMP. See SQL type matcher.

Number types for generators

continuous_generator, quantile_generator and constant_numeric take a numeric_type that sets the type of number they produce:

numeric_type Numbers

BYTE, SHORT, INT, LONG

Signed integers, from 8 to 64 bits

UNSIGNED_BYTE, UNSIGNED_SHORT, UNSIGNED_INTEGER, UNSIGNED_LONG

Unsigned integers, from 8 to 64 bits

BIG_INTEGER

Integers of any size

FLOAT, DOUBLE

Floating-point numbers. FLOAT has about 7 significant digits.

BIG_DECIMAL

Decimal numbers of any precision

See Numeric type in the transformer reference.

Database-specific types

Some column types need care, such as custom types, geometric types and types the database generates itself.

  • Type Handling: common type issues, with pages for custom types, auto-generated types and geometric types.

  • Databases: the supported databases and their connection details.