-
Notifications
You must be signed in to change notification settings - Fork 371
Add transaction tests to catalog integration tests #2371
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
Conversation
tests/integration/test_catalog.py
Outdated
with table.transaction() as transaction: | ||
with transaction.update_schema() as update_schema: | ||
update_schema.add_column("new_col", IntegerType()) | ||
expected_schema = update_schema._apply() |
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.
this apply is just to get the new schema back?
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.
yep
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.
I would rather hardcode the schema:
- This makes the test more readabile because you can see what you're asserting against.
- There are some idea's of avoid using "private" methods in the community ;)
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.
honestly wild how much we are covering with these tests
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.
This is awesome. Thank you!
Impressive work @gabeiglio. This would really help in the long run. |
@kevinjqliu @Fokko this might have fell of the radar, wondering if you folks could review it? |
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 all for the reviews! @jayceslesar @rambleraptor @vinjai
And thanks @gabeiglio for the contribution. This is a great addition to the test suite.
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 for pinging me @gabeiglio This looks great 🙌
Thanks for working on this @gabeiglio, and thanks @vinjai, @rambleraptor, @jayceslesar and @sungwy for the review 🚀 |
Just adding more tests to the catalog tests.