sparkutils / quality

A Quality Spark DQ Library
https://sparkutils.github.io/quality/
Apache License 2.0
4 stars 2 forks source link

add rule_result_f function that returns ruleresesult #45

Closed chris-twiner closed 1 year ago

chris-twiner commented 1 year ago

although types must be known up front if there is an expression ruleresult this pair can be forced into a lambda with the correct dymanic type and return a ruleresult.

Sample usage is expressionRunner(aggExpr) then rule_result_f(er, ids... , r -> r.full.field.available > 0)

chris-twiner commented 1 year ago

should return a null if the deserialisation can't be managed given it's no longer static, exceptions get logged etc.

chris-twiner commented 1 year ago

Not possible given types needed for lambda