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

Failed the validation check for streaming features if accuracy is specified as snapshot #876

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

pallavia7
Copy link
Collaborator

@pallavia7 pallavia7 commented Nov 18, 2024

Summary

For streaming features, failing the validation check if accuracy is specified as snapshot

Why / Goal

Test Plan

  • [+] Added Unit Tests
  • Covered by existing CI
  • Integration tested

Checklist

  • Documentation update

Reviewers


Copy link
Collaborator

@pengyu-hou pengyu-hou left a comment

Choose a reason for hiding this comment

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

LGTM with one minor comment.

@@ -174,7 +175,23 @@ def test_validator_ok():
aggregations=None,
)


def test_validator_accuracy():
with pytest.raises(AssertionError):
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we check the assertion error message?

accuracy=Accuracy.SNAPSHOT,
)
assert all([agg.inputColumn for agg in gb.aggregations if agg.operation != ttypes.Operation.COUNT])
group_by.validate_group_by(gb)
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: add some new lines in between methods.

@pallavia7 pallavia7 merged commit 22d1d39 into main Nov 27, 2024
1 check was pending
@pallavia7 pallavia7 deleted the pallavi--accuracy-compiler branch November 27, 2024 20:01
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.

3 participants