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

Rollback/restore with (materialized) views #530

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

gartens
Copy link
Contributor

@gartens gartens commented Dec 20, 2024

This PR fixes various issues with views during rollback and restore.

  • Views are now correctly serialized and restored to LogicalView or LogicalMaterializedView respectively.
  • The collation field was removed from LogicalView to make the serialization easier. The content of the collation field is now stored in the LogicalRelationalCatalog in the collations map (like the AlgNodes related to a view are already stored in a nodes map).
  • When restoring the Catalog (when Polypheny is started), the nodes and collations maps are re-populated, as they are not serialized with the Catalog.

Copy link
Member

@vogti vogti left a comment

Choose a reason for hiding this comment

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

Thx, @gartens, for this PR!

@vogti vogti merged commit e86ad3d into master Dec 20, 2024
32 checks passed
@vogti vogti deleted the rollback-with-materialized-views branch December 20, 2024 19:10
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