cancel
Showing results for 
Search instead for 
Did you mean: 
Warehousing & Analytics
cancel
Showing results for 
Search instead for 
Did you mean: 

Using Databricks SQL editor, when running a single query such as `use schema {schema_name}`, the selected schema in the UI is not updated. Then any su...

kietay
New Contributor II

Using Databricks SQL editor, when running a single query such as `use schema {schema_name}`, the selected schema in the UI is not updated. Then any subsequent queries will use the UI schema. Leads to very confusing behaviour where you can run:

```

use schema x;

create table y (col_name type)

```

and table y gets created in `default` schema (if that is the schema selected in the UI)

2 REPLIES 2

Kaniz
Community Manager
Community Manager

Hi @Kieran Taylor​, Which DBR version are you using?

This applies to Databricks Runtime 10.2 and above.

kietay
New Contributor II
Hey Kaniz, IIUC Databricks SQL endpoints don't have a specific DBR right?
Kieran Taylor
Senior Software Engineer, Data Platform
Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.