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: 

Combining DLT and workflow - MATERIALIZED_VIEW_OPERATION_NOT_ALLOWED

erigaud
Honored Contributor

Hello everyone !

I currently have a DLT pipeline that loads into several Delta LIVE tables (both streaming and materialized view).

The end table of my DLT pipeline is a materialized view called "silver.my_view".

In a later step I need to join/union/merge this table with an existing Delta Table (so not DLT).

To do so I followed my DLT pipeline with a regular notebook task in the same workflow, but I am met with the following error : 

[MATERIALIZED_VIEW_OPERATION_NOT_ALLOWED.REQUIRES_SHARED_COMPUTE] The materialized view operation query is not allowed: Cannot query the Materialized View silver.my_view from an Assigned or No Isolation Shared cluster, please use a Shared cluster or a Databricks SQL warehouse instead.

I was using a regular job cluster for that. Is there a workaround ? Is using a Shared cluster the only way ? Aren't DLT intended to be used outside the DLT pipeline ?

1 REPLY 1

erigaud
Honored Contributor

Hello @Retired_mod ! Thanks for the answer ! The thing is I'm getting a similar error when trying to read streaming delta live tables.

Is there any way to read a table from a DLT pipeline with a regular non-shared cluster ? How should I define the table in my DLT pipeline so I can easily access it outside the pipeline ? 

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