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: 

SQL table alias autocomplete

jt
New Contributor III

I have a table with 600 columns and the table name is long. I want to use a table alias with autocomplete but it's not working. Any ideas how I can get this to work?

works

%sql 
 
--autocomplete works 
SELECT 
verylongtablename.column200 
verylongtablename.column300
FROM
verylongtablename
WHERE
verylongtablename.column400 = 'yes'

does not work

%sql 
 
--autocomplete doest not work
SELECT 
a.column200 
a.column300
FROM
verylongtablename as a
WHERE
a.column400 = 'yes'

3 REPLIES 3

Aviral-Bhardwaj
Esteemed Contributor III

autocomplete works when you have a running cluster, can you please check and update, because it is working fine for me

AviralBhardwaj

jt
New Contributor III

My cluster is running fine. Does autocomplete work for you with a table alias?

Kaniz_Fatma
Community Manager
Community Manager

Hi @james t​, Try this:-

autocomplete="on"

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