Problem description
I am experiencing recurring failures in an Azure Databricks change data capture (CDC) ingestion pipeline from an SQL Server source. The pipeline has previously failed multiple times, and a workaround involved deleting problematic tables from the configuration. Currently, even with a new pipeline containing only two of the problematic tables, it fails during validation with a syntax error related to 'Key' and an error in resolving and applying clustering. The failure occurs before data extraction begins, and no specific error message or stack trace from the Databricks logs is available. I suspect the issue might be related to table metadata or identifier parsing, but I need help diagnosing the root cause and fixing the pipeline.
Environment
Azure Databricks workspace, running a CDC pipeline from SQL Server with change tracking or CDC enabled, source associated with an ERP system.
What I've already tried
I created a new pipeline with only the two problematic tables to isolate the issue. Despite this, the pipeline fails during validation with a syntax error at or near 'Key' and references to 'clusterBy' in the stack trace. I have not modified production key constraints or renamed primary key columns. I reviewed the source tables and primary key columns in SQL Server, checking for naming patterns that could break identifier parsing. I also attempted removing the failing tables from the old pipeline, which previously resolved issues, but the new pipeline still fails. No further troubleshooting steps or log reviews have been performed beyond these actions.
Current status
I am seeking assistance to identify the root cause of the syntax error related to 'Key' during pipeline validation. Specifically, I need guidance on how to check and modify table metadata or configuration to resolve the parsing error and restore successful CDC ingestion in Databricks.