cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

INTERNAL ERROR

Anonymous
Not applicable

I have the following query;

select  customer_id,
    first(if(name_type = 'Official', name, null),true) official_name,
    first(if(name_type = 'Preferred', name, null),true) preferred_name
from
(
    select  customer_id,
        ifnull(name_type, 'Official') name_type,
        map(
          'title', title,
          'given_name', given_name,
          'surname', surname,
          'middle_name', middle_name,
          'initials', initials,
          'full', surname || ', ' || given_name
        ) name
    from  customer_name
    where   name_status = 'Active'
)
group by customer_id
 
If I run this query against a SQL Warehouse cluster, I get the message Internal error.
 
If I run the same query against a standard compute cluster, I don't get an error.
 
Not only am I wanting to understand why the error is occurring, but how do I debug something so non-specific as Internal error.
2 REPLIES 2

Anonymous
Not applicable

I experienced similar issues from time to time.  What helped is to refresh the browser page.

If that does not work, restart the sql warehouse.
The internal error indeed is pretty vague, but my experience is that this is not related to a wrong SQL script.

Nick4
New Contributor II

This is not browser related... it's an ongoing issue with failing workflows each night.  The SQL warehouse is being restarted each day, but just to be sure, I created an entirely new warehouse and tried running against it... same error.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group