Validate and Synchronize workspace

When you select Generate from the Job configuration panel, Syntho performs several validation steps against the schema of the source database and the destination database.

Source schema validation

The schema of your source database can change over time. For instance, a table might be added, a column removed, or a column's data type altered.

It's crucial that you keep track of these modifications and adjust your job settings accordingly. Failure to do so could result in the data generation process to fail. For instance, if a column's encoding type changes from categorical to discrete, and it was previously assigned a Custom String mocker, the Mocker will now be removed when it is not compatible with the new data type anymore.

Syntho is designed to track changes in the source database and inform you of any modifications to the data schema.

When selecting Generate, the Source Database Validation tab will alert you of any schema changes and give the option to Sync those changes with your workspace.

Source schema synchronization

Select the Sync button on the Job configuration panel to automatically synchronize any inconsistencies between your workspace and the source database schema.

If schema issues are left unresolved, they can result in the failure of the data generation process.

Syntho is equipped to automatically identify and synchronize the following types of schema changes:

Source table changes:

  1. The primary key of the table has changed.

  2. The primary key of the table has been removed.

  3. A primary key has been added to the table.

  4. A foreign of the table has been removed.

  5. A foreign key has been added to the table.

  6. The unique constraints for the table have been updated.

  7. The check constraints for the table have been updated.

Source column changes:

  1. The data type of the column has been updated.

  2. The column is now auto incrementing.

  3. The column is not auto incrementing anymore.

  4. The maximum value of a column has changed.

  5. The maximum length of a column has changed.

  6. The default of the column has been updated.

  7. The column is not nullable anymore.

  8. The column is now nullable.

  9. The column is not unique anymore.

  10. The column is now unique.

  11. The column is not part of the primary key anymore.

  12. The column is now part of the primary key.

  13. The column is not part of a foreign key anymore.

  14. The column is now part of a foreign key.

  15. The column is not part of a composite unique constraint anymore.

  16. The column is now part of a composite unique constraint.

  17. The generator of the column has been removed.

Destination schema validation

Syntho automatically validates the destination database's schema against your workspace. This may result in several issues or warnings, which can be resolved by altering the destination database.

Table issues:

Table issues will cause your synthetic data job to fail. The following issues in your destination database may occur:

  • Table does not exist. To resolve this issue:

    1. Make sure that the schema names in the source and destination database match, and

    2. Add a table with the exact same name to your destination database.

Table warnings:

Table warnings do not automatically cause your synthetic data job to fail, but could still cause issues. The following warnings in your destination database may occur:

  • Table already contains data. To resolve this warning:

    • Truncate the table in the destination database.

  • Table is part of a circular reference. To resolve this warning:

    • Disable (or remove) any foreign key constraint(s) to break the circular reference.

Column issues:

Column issues will cause your synthetic data job to fail. The following issues in your destination database may occur:

  • Column does not exist. To resolve this issue:

    • Add a column with the exact same name in the table in your destination database.

Column warnings:

Column warnings do not automatically cause your synthetic data job to fail, but could still cause issues. The following warnings in your destination database may occur:

  • Column has mismatching data types. To resolve this warning:

    • Change the data type of the destination column to match the data type of the source column.

  • Column has mismatching data types. To resolve this warning:

    • Change the data type of the destination column to match the data type of the source column.

  • Column has missing default value. To resolve this warning:

    • Ensure that the default value set on the column in the source database is also set in the destination database.

Last updated