-
Notifications
You must be signed in to change notification settings - Fork 31
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
ut: add test for Snapshot
#39
Conversation
GitHub action doesn't seem to run automatically 🥲. @Xuanwo |
Thanks for the feedback. I will check with the INFRA team. |
Hi, it should be work now. Please try push a new commit or a new PR, thanks! |
It works! |
crates/paimon/src/spec/snapshot.rs
Outdated
assert_eq!(snapshot.total_record_count(), Some(500)); | ||
assert_eq!(snapshot.delta_record_count(), Some(200)); | ||
assert_eq!(snapshot.changelog_record_count(), Some(50)); | ||
assert_eq!(snapshot.watermark(), Some(123456789)); |
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.
Add an option for ut with a value of None
?
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.
Add an option for ut with a value of
None
?
OK, I will do it later.
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.
Thank you for this PR. However, I would prefer to see a test that can serialize/deserialize actual snapshot files. The current PR only tests simple get/set operations, which are already covered by TypedBuilder
.
Hi, I have add |
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.
LGTM
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.
Thanks!
part of #26