So, I'm using Amazon Deequ in Spark, and I have a dataframe df
with a column publish_date
which is of type DateType
. I simply want to check the following:
publish_date <= current_date(minus)x AND publish_date >= current_date(minus)y
where x
and y
are integers.
I'm not sure what check to put here:
val verificationResult: VerificationResult = { VerificationSuite()
.onData(df)
.addCheck(
Check(CheckLevel.Error, "Review Check")
//function to check this
)
.run()
}