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: 

External table issue

RohitKulkarni
Contributor II

Hello Team,

I am using df.write command and the table is getting created.

image 

If you refer the below screenshot the table got created in Tables folder in dedicated sql pool. But i required in the External Tables folder.

image 

Regards

RK

5 REPLIES 5

-werners-
Esteemed Contributor III

if you actually write into Synapse, it is not an external table. the data resides on synapse.

If you want to have an external table, write the data on your data lake in parquet/delta lake format and then create an external table on that location in synapse.

Please can you explain me with examples .

-werners-
Esteemed Contributor III

https://learn.microsoft.com/en-us/azure/synapse-analytics/sql/develop-tables-external-tables?tabs=ha...

External tables are not actual tables but a 'view' on top of data which resides somewhere else, NOT in the database.

If you use df.write.format(...sqldw) you are actually gonna write into the database itself which makes it a common table.

If you would use df.write.parquet(<path>) you could create an external table on top of the data, see the link I provided.

Thanks for sharing the link.But this can be tested in synapse analytics but not in databricks

-werners-
Esteemed Contributor III

yes, databricks can send data to synapse but table management is done in Synapse, not databricks

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