cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

not able to create temporary tables in unity catalog

SandeepG
New Contributor

We are using a unity catalog environment and when trying to create a temporary table the statement errored out.

SandeepG_0-1710776912989.png

 

2 REPLIES 2

Kaniz
Community Manager
Community Manager

Hi @SandeepGThis article introduces the concept of managed and external tables in Unity Catalog and describes how to create tables in Unity Catalog.

Sampath_Kumar
New Contributor II

Hi @SandeepG 

Could you please share the need of a temporary table?

Here are the possible ways

  • Tables:
    • External Tables: Tables can be created on top of files which are externally located.
    • Managed Tables: The usual tables which will be stored and managed automatically as per the schema and catalog configurations.
    • Reference: Databricks Tables 
  • Views:
    • View is a virtual object storing the result of a custom query.
    • Temporary view which is limited to the created spark session(within notebook) and global temporary view which is limited to the cluster(within workspace). Both of these are temporarily stored.
    • Materialized view: It is like a view but it is physically stored. It can be refreshed whenever needed.
  • The respective object can be chosen based on the requirement.