cancel
Showing results for 
Search instead for 
Did you mean: 
Community 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.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!