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 |
|---|---|
|
Character columns. For example, |
|
Number columns. For example, |
|
Date and time columns. For example, |
|
Boolean columns. For example, |
|
Any column type. For example, |
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 |
|---|---|
|
Signed integers, from 8 to 64 bits |
|
Unsigned integers, from 8 to 64 bits |
|
Integers of any size |
|
Floating-point numbers. |
|
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.