[PARSE_SYNTAX_ERROR] after successful merge

The problem I’m having

I have an issue building python models on databricks incrementally.
It fails with this runtime error with an empty query.

  Runtime Error
    
    [PARSE_SYNTAX_ERROR] Syntax error at or near end of input. SQLSTATE: 42601 (line 5, pos 0)
    
    == SQL ==
    /* {"app": "dbt", "dbt_version": "1.8.8", "dbt_databricks_version": "1.8.0", "databricks_sql_connector_version": "3.1.2", "profile_name": "interfood", "target_name": "development", "node_id": "model.interfood.int_options__iv_dataset_preparation"} */
    
        
        
    ^^^
    

When I check the debug logs, it successfully processed the merge and drop tmp queries but this error comes after that. I see that the table was also successfully updated.
The error doesn’t occur with --full-refresh.
The models ran fine until 2 days ago, and it suddenly started failing.

Could anyone help? Thank you!

** Versions **

  • dbt-databricks==1.8.5 (1.7.16 didn’t work either)
  • dbt-core==1.8.0
  • databricks-sdk==0.28.0