Reputation: 30745
If I create an external table in Databricks, how can I check its location (in Delta lake) using an SQL query?
Upvotes: 3
Views: 12284
Reputation: 28329
You can also use the following sql query to check the table location:
DESCRIBE TABLE EXTENDED <your-table-name>
See here for more details on using DESCRIBE
.
Upvotes: 0
Reputation: 2344
This can be done by using of multiple ways .
%sql
show create table database.tablename
or
%sql
desc formatted database.tablename
Upvotes: 5
Reputation: 30745
It can be done by using the following command.
describe detail <the table>
The location would be listed in the column location
.
Upvotes: 8