Skip to content

Commit

Permalink
Add back UNIQUENESS_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantony committed Aug 31, 2024
1 parent 542dcd6 commit 54d4d78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/com/amazon/deequ/VerificationResult.scala
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ object VerificationResult {

val columnNamesToMetrics: Map[String, Column] = verificationResultToColumn(verificationResult)

data.withColumns(columnNamesToMetrics)
val dataWithID = data.withColumn(UNIQUENESS_ID, monotonically_increasing_id())
dataWithID.withColumns(columnNamesToMetrics).drop(UNIQUENESS_ID)
}

def checkResultsAsJson(verificationResult: VerificationResult,
Expand Down

0 comments on commit 54d4d78

Please sign in to comment.