Skip to main content

Datatype


The Datatype check ensures that string values in a column conform to a specified data type. If the value does not conform, the check fails. This enables users to enforce consistency-based data quality rules without writing any expressions.

Steps

  1. Navigate to the Checks tab of the Validation Rule.
  2. Click edit ✏️ button to rename the Check which is by default Chk_[Sequential_Number].
  3. Select Add, then choose Datatype.
  4. Search and select the column to perform the Datatype check on.
  5. Select one of the datatypes from the following options:
    a. Integer
    b. Long
    c. Double
    d. Float
    e. BigDecimal
    f. Boolean
  6. Configure the following optional setting:
PropertyDescription
Trim DataIf enabled, the engine will trim trailing/ leading spaces before applying the check.
Ignore NullsIf enabled, the engine will not apply the check, resulting in a success state.
  1. Use the test feature to validate the check logic without running the full rule. Enter sample input values in the text fields and click the Play button to view the output.
  2. Optionally, provide a Check Description to explain the purpose and business logic.
  3. Optionally, tag a Data Quality Dimension to the check.
  4. Finalize the check by selecting one of the following options:
  • Cancel – Discard the check.
  • Save – Save the check and close the configuration window.
  • Save and Next – Save the current check and proceed to create a new one.

Output

  • true – When the string value conforms to the selected datatype.
  • false – When the string value does not conform to the selected datatype.

Example:
Rule: AccountNumber: Datatype selected: Integer
Input: ACB56982314 → Output: false
Input: 569812658 → Output: true

note

This check is currently supported only for columns with String datatype.
A single check can be applied to only one attribute. To validate multiple attributes, create separate Datatype checks for each.

Datatype Check