11-30-2023 03:28 PM
I created a separate pipeline notebook to generate the table via DLT, and a separate notebook to write the entire output to redshift at the end. The table created via DLT is called spark.read.table("{schema}.{table}").
This way, I can import
[MATERIALIZED_VIEW_OPERATION_NOT_ALLOWED.REQUIRES_SHARED_COMPUTE] The materialized view operation query is not allowed: Cannot query the Materialized View main.voyager.shop_silver from an Assigned or No Isolation Shared cluster, please use a Shared cluster or a Databricks SQL warehouse instead.
I get this error. How can I fix it?
11-30-2023 09:27 PM - edited 11-30-2023 09:27 PM
Hi @rt-slowth, The error message you received indicates that materialized views in Delta Lake require access to metadata unavailable in a non-shared Databricks job cluster.
Here are some steps to address this issue:
Enable Materialized Views:
Cluster Type:
Review Materialized View Creation:
Check Permissions:
Refresh Schedule:
12-03-2023 10:10 PM
11-30-2023 09:27 PM - edited 11-30-2023 09:27 PM
Hi @rt-slowth, The error message you received indicates that materialized views in Delta Lake require access to metadata unavailable in a non-shared Databricks job cluster.
Here are some steps to address this issue:
Enable Materialized Views:
Cluster Type:
Review Materialized View Creation:
Check Permissions:
Refresh Schedule:
12-03-2023 09:34 PM
Enable Materialized Views:
- Consider using DBSQL Serverless (recommended) or Pro warehouse for materialized views.
- Ensure that materialized view features are enabled for your workspace.
Can you point me to the documentation for this workaround?
12-03-2023 09:40 PM
Enable Materialized Views:
Can you point me to the documentation for this workaround?
12-03-2023 10:10 PM
12-03-2023 09:26 PM
Thank you for posting your question in our community! We are happy to assist you.
To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?
This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance!
Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections.
Click here to register and join today!
Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.