-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(only idea!) #94 measure validation on column #95
Conversation
…nt-creation-function # Conflicts: # agent/src/main/scala/za/co/absa/atum/agent/AtumContext.scala # agent/src/test/scala/za/co/absa/atum/agent/AtumContextTest.scala
… unit tests, refactoring & simplification
…nt-creation-function # Conflicts: # agent/src/main/scala/za/co/absa/atum/agent/AtumContext.scala # agent/src/main/scala/za/co/absa/atum/agent/model/Checkpoint.scala
…unction' into feature/94-measure-validation-on-column # Conflicts: # agent/src/main/scala/za/co/absa/atum/agent/AtumContext.scala # agent/src/main/scala/za/co/absa/atum/agent/model/Measure.scala # project/Dependencies.scala
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, not sure if this have priority now 🤔
|
||
def currentMeasures: Set[Measure] = measures | ||
|
||
def subPartitionContext(subPartitions: AtumPartitions): AtumContext = { | ||
agent.getOrCreateAtumSubContext(atumPartitions ++ subPartitions)(this) | ||
} | ||
|
||
private def validateMeasureApplicability(measure: Measure, df: DataFrame): Unit = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would make this a method of Measure
, so it can actually be customized based on each function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea actually. Measure can have this one implemented in it, and individual ones can override if needed. Especially useful for Measures that don't operate on any column, such as count
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
…4-measure-validation-on-column
…unction' into feature/94-measure-validation-on-column # Conflicts: # agent/src/test/scala/za/co/absa/atum/agent/AtumContextTest.scala
…nt-creation-function # Conflicts: # agent/src/main/scala/za/co/absa/atum/agent/AtumContext.scala
…unction' into feature/94-measure-validation-on-column # Conflicts: # agent/src/main/scala/za/co/absa/atum/agent/AtumContext.scala # agent/src/test/scala/za/co/absa/atum/agent/AtumContextTest.scala
…do this differently
…4-measure-validation-on-column
Probably not gonna do it like this |
Validation of measure calculations on agent side.
Closes #94
Note: don't review this one please, it might even be disregarded. It was just an idea!