- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2024 01:02 AM
Description:
I encountered an issue while executing a Spark SQL query in Databricks, and it seems to be related to the query optimization phase. The error message suggests an internal bug within Spark or the Spark plugins used in our environment. I am reaching out to report this issue and seek assistance in troubleshooting and resolving it.
Error Message:
Environment Details:
- Cloud: Azure
- Compute: SQL Warehouse, Serverless
- Channel: (v 2024.35)
- Size: X-Small
Query:
Here is the SQL query that triggered the internal error:
Steps to Reproduce:
- Executed the above SQL query within a Databricks notebook.
- The error occurs during query execution, specifically during the Spark SQL optimization phase.
Troubleshooting Attempts:
- I simplified the query to isolate the issue, and it appears to be related to the internal Spark SQL optimizer.
- I've checked for any unsupported functions or potential syntax issues, but the query seems valid based on Spark SQL syntax.
Request:
I believe this may be a bug in Spark or the Databricks runtime, and I would appreciate guidance on resolving it. If further investigation is required, I am happy to provide any additional details or logs.
Thanks,
Boitumelo
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 12:25 AM
Update:
Response from the Databricks Team.
Symptoms
Internal Error During Spark SQL Phase Optimization.
Cause
DataBricks PG Engineering team confirmed that this is indeed a bug in CASE WHEN optimization & they are working on the fix for this issue.
Resolution
The fix has been merged and it will soon be available in runtime. Once merged, we await the deployment of version 16.1. The ETA for the fix for this issue with the new DBR 16.1 is mid-January.
Thanks,
Boitumelo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2024 09:04 AM - edited 12-05-2024 09:05 AM
This is not expected. Can you please verify:
- Are there any admin settings set on the cluster?
- Are you selecting from any views? If so, what do their definitions look like?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 12:25 AM
Update:
Response from the Databricks Team.
Symptoms
Internal Error During Spark SQL Phase Optimization.
Cause
DataBricks PG Engineering team confirmed that this is indeed a bug in CASE WHEN optimization & they are working on the fix for this issue.
Resolution
The fix has been merged and it will soon be available in runtime. Once merged, we await the deployment of version 16.1. The ETA for the fix for this issue with the new DBR 16.1 is mid-January.
Thanks,
Boitumelo

