Skip to content
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

Closed
wants to merge 25 commits into from

Conversation

lsulak
Copy link
Collaborator

@lsulak lsulak commented Oct 25, 2023

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!

…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
Copy link
Contributor

@benedeki benedeki left a 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 = {
Copy link
Contributor

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.

Copy link
Collaborator Author

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

lsulak added 12 commits October 27, 2023 14:08
…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
Base automatically changed from feature/26-checkpoint-creation-function to master November 1, 2023 10:22
@lsulak lsulak added the work in progress Work on this item is not yet finished (mainly intended for PRs) label Nov 2, 2023
@lsulak lsulak changed the title #94 measure validation on column (only idea!) #94 measure validation on column Nov 9, 2023
@lsulak
Copy link
Collaborator Author

lsulak commented Nov 20, 2023

Probably not gonna do it like this

@lsulak lsulak closed this Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work in progress Work on this item is not yet finished (mainly intended for PRs)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Agent: Validate Measure Applicability for a given DF (column)
3 participants