cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Bronze layer tables

spallinti
New Contributor

What type of tables do we use for Bronze layer. Managed or external when our raw data is in csv file

1 REPLY 1

Vinay_M_R
Valued Contributor II
Valued Contributor II

You can create either a managed or an unmanaged (external) table in the bronze layer, depending on your preference and use case. If you choose to create a managed table, Databricks will manage both the metadata and the data for the table. If you choose to create an unmanaged table, you will manage the data yourself, and Databricks will only manage the metadata. Since the data is in CSV format, you can use the following code to create a managed table:

%sql
CREATE TABLE bronze_table
USING csv
OPTIONS (path "/path/to/csv/files")


Or, you can use the following code to create an unmanaged table:

%sql
CREATE TABLE bronze_table
USING csv
OPTIONS (path "/path/to/csv/files")
LOCATION "/path/to/csv/files"


Note that with an unmanaged table, you must specify the LOCATION where the data is stored.

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