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

Small MV improvements #13574

Merged
merged 4 commits into from
Aug 12, 2022
Merged

Conversation

findepi
Copy link
Member

@findepi findepi commented Aug 9, 2022

Extracted from #13484

This makes the exit paths more natural. Previously we had to
special-case on empty map returned from `getMaterializedViewToken`
meaning "missing information, assume not fresh".
@cla-bot cla-bot bot added the cla-signed label Aug 9, 2022
Before the change, when an Iceberg materialized view was created on a
table without any snapshots, the table would be excluded from future
staleness checks.

Note: Trino does not currently create tables without any initial
snapshots. The `CREATE TABLE` in Trino currently creates a table
snapshot.
It's to be future-proof and also suppress an error-prone warning.
Currently, the returned future is always already completed.
@findepi
Copy link
Member Author

findepi commented Aug 12, 2022

@ebyhr @raunaqmorarka can you PTAL?

Copy link
Member

@raunaqmorarka raunaqmorarka left a comment

Choose a reason for hiding this comment

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

Would be nice to have a test

@findepi
Copy link
Member Author

findepi commented Aug 12, 2022

Would be nice to have a test

discussed offline. @raunaqmorarka will follow-up. thank you!

@findepi findepi merged commit bb55fc0 into trinodb:master Aug 12, 2022
@findepi findepi mentioned this pull request Aug 12, 2022
@github-actions github-actions bot added this to the 393 milestone Aug 12, 2022
@colebow colebow added no-release-notes This pull request does not require release notes entry and removed no-release-notes This pull request does not require release notes entry labels Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants