You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* added support to where method and tests
* corrected method
* added tests and changed flow structure
* corrected failing test
---------
Co-authored-by: andrzej.nescior <[email protected]>
self.assertEqual(self.where(lambdax: x==2.0, "boolean='true'", "column 'boolean' has two values true"),
1256
+
[Row(constraint_status="Success")])
1257
+
self.assertEqual(
1258
+
self.where(lambdax: x==3.0, "d=5", "column 'd' has three values 3"),
1259
+
[Row(constraint_status="Success")],
1260
+
)
1261
+
self.assertEqual(
1262
+
self.where(lambdax: x==2.0, "ssn='000-00-0000'", "column 'ssn' has one value 000-00-0000"),
1263
+
[Row(constraint_status="Failure")],
1264
+
)
1265
+
check=Check(self.spark, CheckLevel.Warning, "test where").hasMin("f", lambdax: x==2, "The f has min value 2 becasue of the additional filter").where('f>=2')
1266
+
result=VerificationSuite(self.spark).onData(self.df).addCheck(check.isGreaterThan("e", "h", lambdax: x==1, "Column H is not smaller than Column E")).run()
0 commit comments