Skip to content

Conversation

@findepi
Copy link
Member

@findepi findepi commented Feb 1, 2023

Extracted from #15842

@findepi
Copy link
Member Author

findepi commented Feb 1, 2023

CI #14618 (reopen), #12535

@findepi findepi force-pushed the findepi/avoid-failing-materialized-view-operations-when-base-table-gone-a1d974 branch from 17207ba to 6deb2b6 Compare February 1, 2023 21:19
Copy link
Contributor

Choose a reason for hiding this comment

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

snapshotAtRefresh seems too specialized in the scope of this method.

Copy link
Member Author

Choose a reason for hiding this comment

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

not sure what you would suggest here?

Copy link
Contributor

Choose a reason for hiding this comment

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

snapshotAtRefresh -> snapshotId

Copy link
Member Author

Choose a reason for hiding this comment

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

ok, and will also rename to isSnapshotCurrent

@findepi
Copy link
Member Author

findepi commented Feb 2, 2023

CI #12535 (again), #15809, #14441

This is just a refactor

- Inline `getTableToken`
- Remove redundant `TableToken` (it is not used for populating
  DEPENDS_ON_TABLES field, so doesn't provide any encapsulation)
- reduce visibility
- remove redundant cast & conversions
- move below the usage, as it is a helper
- give the method a better name.
Reporting `MaterializedViewNotFoundException` for a freshness check
resulted in `SELECT .. FROM mv` query failing in "materialized view mv
does not exist", which was not correct, since it exists, just cannot be
queried.
@findepi findepi force-pushed the findepi/avoid-failing-materialized-view-operations-when-base-table-gone-a1d974 branch from 6deb2b6 to 387a9f0 Compare February 2, 2023 09:49
@findepi findepi merged commit 6c9e194 into trinodb:master Feb 2, 2023
@findepi findepi deleted the findepi/avoid-failing-materialized-view-operations-when-base-table-gone-a1d974 branch February 2, 2023 09:50
@findepi findepi mentioned this pull request Feb 2, 2023
@github-actions github-actions bot added this to the 407 milestone Feb 2, 2023
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.

4 participants