Skip to content

Small MV improvements#13574

Merged
findepi merged 4 commits intotrinodb:masterfrom
findepi:findepi/iceberg-mv-fixups
Aug 12, 2022
Merged

Small MV improvements#13574
findepi merged 4 commits intotrinodb:masterfrom
findepi:findepi/iceberg-mv-fixups

Conversation

@findepi
Copy link
Member

@findepi findepi commented Aug 9, 2022

Extracted from #13484

findepi added 2 commits August 9, 2022 17:19
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 findepi force-pushed the findepi/iceberg-mv-fixups branch from 6648520 to fdcbccd Compare August 10, 2022 09:18
@findepi findepi requested a review from ebyhr August 10, 2022 09:18
@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