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

 

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now