Skip to content

Conversation

gabeiglio
Copy link
Contributor

Just adding more tests to the catalog tests.

with table.transaction() as transaction:
with transaction.update_schema() as update_schema:
update_schema.add_column("new_col", IntegerType())
expected_schema = update_schema._apply()
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep

Copy link
Contributor

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 ;)

@gabeiglio gabeiglio requested a review from Fokko September 12, 2025 20:55
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