Skip to content

Instantly share code, notes, and snippets.

@timgent
Created August 8, 2020 08:57
Show Gist options
  • Save timgent/31205f8f54ce469ab3df752dfd67c0f3 to your computer and use it in GitHub Desktop.
Save timgent/31205f8f54ce469ab3df752dfd67c0f3 to your computer and use it in GitHub Desktop.
val predictedOrdersChecks = ChecksSuite("orders",
dualDsChecks = Map(
DescribedDsPair(DescribedDs(orders, "orders"), DescribedDs(predictedOrders, "predictedOrders")) ->
Seq(
DualMetricCheck(CountDistinctValuesMetric(List("customerId")), CountDistinctValuesMetric(List("customerId")),
"predicted orders present for every customer", MetricComparator.metricsAreEqual)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment