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:ย 

How to use DLT Expectations for uniqueness checks on a dataset?

Zeruno
New Contributor II

I am using dlt through python to build a DLT pipeline. One of things I would like to do is to check that each incoming row does not exist in the target table; i want to be sure that each row is unique.

I am confused because it seems like this is not possible through dlt expect. I am under the impression that each expectation works on row-level, not on a table-level. Morever I am not seeing anything about uniqueness constraints and am reading that PKs are not enforced. So, is this possible?

#dlt #expect

1 REPLY 1

Mauro
New Contributor

I also have the same doubt, about the implementation of the uniqueness rule

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