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

Add DateTimeMetric, Analyzer and Example #568

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

zeotuan
Copy link
Contributor

@zeotuan zeotuan commented May 16, 2024

Description of changes:
Add DateTimeMetric support. This chunk part of #299 to only DateTimeMetric support:

  • Remove usage of deprecated UDAF from original PR
  • use java.time.Instant isntead of java.sql.timestamp
  • Fix bug + Adding Test

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@zeotuan zeotuan marked this pull request as ready for review September 15, 2024 06:22
@zeotuan
Copy link
Contributor Author

zeotuan commented Sep 16, 2024

Hi @rdsharma26, @mentekid please help review this one

Copy link
Contributor

@eycho-am eycho-am left a comment

Choose a reason for hiding this comment

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

In general the changes look good and thank you for adding the example.

Could you add some more testing please?
Would like to see more tests for the analyzer behavior (in https://github.com/awslabs/deequ/tree/master/src/test/scala/com/amazon/deequ/analyzers) and tests to see how it works within the VerificationSuite (in https://github.com/awslabs/deequ/blob/master/src/test/scala/com/amazon/deequ/VerificationSuiteTest.scala)

pom.xml Outdated Show resolved Hide resolved
)
}

"datetimeDistribution analyzer with VerificationSuite" in withSparkSessionJava8APIEnabled { sparkSession =>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eycho-am Hi just to confirm this is the kind of test you was looking for right?
Currently It is only implemented as an Analyzer to run with AnalysisRunner or as RequiredAnalyzer

For more advance use case with VerificationSuite, I can open a PR to implement some check based on it

@zeotuan zeotuan requested a review from eycho-am October 23, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants