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: 

Materialize view creation is failed

shsalami
New Contributor III
I have 'ALL_PRIVILEGES' and 'USE_SCHEMA' on lhdev.gld_sbx schema but the following command has been failed with the error:
DriverException: Unable to process statement for Table 'customermvx'
 
create materialized view customermvx
as
select *
from lhdev.gld_sbx.customer
1 ACCEPTED SOLUTION

Accepted Solutions

Thanks, it was caused by '%s' in the notebook.

View solution in original post

2 REPLIES 2

szymon_dybczak
Esteemed Contributor III

Hi @shsalami ,

According to below documentation snippet, you also need USE CATALOG privilege on the parent catalog. 

"The user who creates a materialized view (MV) is the MV owner and needs to have the following permissions:

  • SELECT privilege over the base tables referenced by the MV.
  • USE CATALOG privilege on the parent catalog and the USE SCHEMA privilege on the parent schema.
  • CREATE MATERIALIZED VIEW privilege on the schema for the MV."

Thanks, it was caused by '%s' in the notebook.

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