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: 

[Deprecation Marker Required] : MERGE INTO Clause

Gajju
New Contributor

Dear Friends:

Considering MERGE INTO may generate wrong results(The APPLY CHANGES APIs: Simplify change data capture with Delta Live Tables | Databricks on AWS), may I ask that why it's API is still floating in technical documentation, without "Deprecated/Obsolete Marker" ?

It's causing confusion.

Is there any use case where MERGE wins over APPLY CHANGES INTO?

1 REPLY 1

User16502773013
Databricks Employee
Databricks Employee

Hello @Gajju ,

MERGE INTO is not being deprecated, APPLY CHANGES should be seen as an enhanced merge process in Delta Live Table that handles out of sequence records automatically as shown in  the example in the documentation shared.

The notion of wrong results is pertaining to handling out of sequence records which may be prone to errors due to logic implementation in MERGE INTO

MERGE wins when you you need full control of out of sequence without built-in sequencing feature use cases

Regards

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