Facing below issue and need a solution to proceed further
Category: Error
Message: DDL objects missing on table 'DB.dbo.client'. Execute the DDL objects script and full refresh the table on the Ingestion Pipeline. Error message: '
Reason:
- Catalog is not properly configured to capture DDL changes for the provided set of tables.
How to fix:
- To capture DDL changes for a table with LakeFlow Connect, appropriate set of support objects must be setup on the catalog. Different support objects are needed depending if tables that are replicated are using CT and/or CDC extraction mechanism.
- Investigation shows that only CDC tables are included in the replication, but corresponding DDL support object do not exist in the catalog.
- Please check the documentation for information on how to properly set up the catalog for DDL capture. Link to the related documentation is provided below under 'Useful links' section.
- To create the missing support objects, please execute the T-SQL script on this catalog in 'CDC' mode. This will create CDC related support objects. Alternatively, script can be executed in 'BOTH' mode, which will create both CT and CDC support objects.
Useful links:
- Setting up Change Tracking (CT) on SQL Server: https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/sql-server/change-tracking#set-up-ddl-...
- Setting up Change Data Capture (CDC) on SQL Server: https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/sql-server/cdc#set-up-ddl-capture-and-...'.
Error class: INGESTION_GATEWAY_DDL_OBJECTS_MISSING
SQL state: 42000