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

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