cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Unity Catalog Table/View Column Data Type Changes

Eric_Kieft
New Contributor III

When changing a delta table column data type in Unity Catalog, we noticed a view that is referencing that table did not automatically update to reflect the new data type.

Is there a way to update the delta table column data type so that it also updates the view column data type at the same time? Or is there a way to refresh the view to reflect the new data type (apart from rerunning the "create or replace view" command)?

2 REPLIES 2

Lakshay
Databricks Employee
Databricks Employee

Can you try refreshing the view by running the command: REFRESH TABLE <viewname>

Eric_Kieft
New Contributor III

Should have mentioned in the original post.  I did try that after the table column was updated, but it returned an exception:

Eric_Kieft_0-1692907525927.png

 

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