Databricks · Schema drift
[UNRESOLVED_COLUMN.WITH_SUGGESTION] in a Databricks job
Spark analysed the query and found no column with that name in the tables it reads. In a scheduled job the usual reason is that an upstream table changed: the column was renamed or dropped. The suggestion list shows the columns that do exist, and the renamed one is often among them.
[UNRESOLVED_COLUMN.WITH_SUGGESTION] A column, variable, or function parameter with name `customer_id` cannot be resolved. Did you mean one of the following? [`client_id`, `order_id`, `amount`]. SQLSTATE: 42703
What this error means
The error is raised while the query is analysed, before any data is read or written, so the task fails quickly and changes nothing. WITH_SUGGESTION means Spark found similar names and lists them. WITHOUT_SUGGESTION is the same error with no similar name to offer.
The same condition is reported for a variable or a function parameter, but in pipeline code it is almost always a column.
Why it happens
- An upstream table renamed or dropped the column. The owner of the table changed its schema, and your
SELECT,MERGEor DataFrame code still uses the old name. - The column is not available where it is used. It was left out by an earlier
select, removed by an aggregation, or belongs to the other side of a join and needs its table alias. - An alias is used too early. A column alias defined in the
SELECTlist is used in theWHEREclause of the same query. - New files with a different schema. A read that takes its schema from the files picked up files that do not have the column.
How to fix it
Read the suggestion list
The names in brackets are the columns Spark can see at that point of the query. A near match, such as
client_idforcustomer_id, is usually the renamed column.Check the table’s current schema
Run
DESCRIBE TABLE raw.ordersand compare the result with the columns your code selects.Find out when it changed
Run
DESCRIBE HISTORY raw.orders. The history lists the operations on the table with their time and user, so you can see the change and who made it.Update the query
Select the new name. If later code still expects the old one, alias it, so that one line changes and not many.
Keep the old name for the rest of the job 01 SELECT order_id,02- customer_id,03+ client_id AS customer_id,04 amount05 FROM raw.orders
Repair the run
Use Repair run on the failed job run. It reruns the failed task and the tasks that were skipped after it, without repeating the ones that succeeded.
How to stop it coming back
- Agree schema changes on shared tables in advance. A rename is a breaking change for every reader.
- Read shared tables through a view that keeps column names stable.
- Start the job with a task that checks the expected columns exist and fails with a clear message.
With PipelineMender AI
The next failed run explains itself.
PipelineMender reads each failed task’s error and stack trace and the job settings through the Jobs API with Can View. For this failure the report quotes the unresolved column and the suggestions, names the task that selects it, and proposes the changed select for you to review, as in the example on the Databricks page.
Is the error in front of you now? Start a trial, choose Report an incident and paste it in. No connection is needed for that.
- Read-only access
- You review every change
- No model training
Questions
Common questions about this error.
What does WITH_SUGGESTION mean?
Spark could not resolve the name but found similar column names and lists them. WITHOUT_SUGGESTION is the same error with no similar names to offer.
Why did the job fail before reading any data?
Column names are resolved when the query is analysed, which happens before it runs. A missing column therefore fails the task straight away.
Is the column name case-sensitive?
Not by default. Spark SQL resolves column names without regard to case unless spark.sql.caseSensitive is switched on.
Checked against: UNRESOLVED_COLUMN error condition Error conditions in Databricks DESCRIBE TABLE Work with table history Rename and drop columns with Delta Lake column mapping Troubleshoot and repair job failures
Last reviewed 13 November 2026 against the Databricks documentation. PipelineMender AI is an independent product and is not affiliated with Microsoft or Databricks; product names are trademarks of their owners.