Pablo_Camacho
Databricks Partner

Hello @Sourav-Kundu,

Could you kindly provide more detail on your third point:

- *"If one of the tables in the MERGE operation is small, consider using broadcast joins."*

I’m interested in understanding how to apply a BROADCAST hint (/*+ BROADCAST(table) */) within a MERGE statement. I've tried a few methods without success.

I'm currently encountering a similar issue as @KacperG. My straightforward merge statement seems to be stalled. The target table utilizes liquid clustering, and the source table is loaded into memory using `createOrReplaceTempView` before executing the merge. This situation is quite challenging, and I'm running out of options. Your input would be highly appreciated. Thank you!