cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating table in Unity Catalog with file scheme dbfs is not supported

raktim_das
New Contributor

 

code:
# Define the path for the staging Delta table
staging_table_path = "dbfs:/user/hive/warehouse/staging_order_tracking"
spark.sql( f"CREATE TABLE IF NOT EXISTS staging_order_tracking USING DELTA LOCATION '{staging_table_path}'" )
Creating table in Unity Catalog with file scheme dbfs is not supported.
1 REPLY 1

LuisRSanchez
New Contributor III

In UC dbfs file location and dbfs mount point for a table is consider an anti pattern by databricks, this is because dbfs is at the scope of the workspace and it has security limitations (https://learn.microsoft.com/en-us/azure/databricks/dbfs/unity-catalog)

therefore, use the external location and manage location of UC for table creation.

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