cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Delta Live Tables - how do you merge multiple streaming datasets into a single one?

Ian
New Contributor III

I need to create a dataset that is dependent on multiple streaming datasets. However, when I attempt to create the new single stream I am getting an error.

Append output mode not supported when there are streaming aggregations on streaming DataFrames/DataSets without watermark;

Example:

create or refresh streaming live table silver_customer;

create temporary streaming live view customer_updates

as

with listOfCustomers as

(

select CustomerID

from

 stream(live.raw_Customer)

union

select CustomerID

from

 stream(live.raw_CustomerAddress)

)

select CustomerID

from listOfCustomers;

apply changes into 

 live.silver_customer

from

 stream(live.customer_updates)

keys(CustomerID)

sequence by CustomerID

stored as scd type 1;

3 REPLIES 3

Kaniz
Community Manager
Community Manager

Hi @Ian Corera​, This S.0 thread has a similar discussion. Please let us know if that helps.

Hi @Ian Corera​,

Just a friendly follow-up. Do you still need help? please let us know if you do.

Ian
New Contributor III

Hi Kaniz/Jose, I was able to resolve the issue. I used 'union all' to avoid aggregation on the stream and have it continue to write to the table in append mode.

This issue can be closed.

Welcome to Databricks Community: Lets learn, network and celebrate together

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.