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

HIVE-25899: Materialized view registry does not clean dropped views #2975

Merged
merged 2 commits into from Jan 28, 2022

Conversation

kasakrisz
Copy link
Contributor

What changes were proposed in this pull request?

MaterializedViewsCache nested maps.

somedb -> someview -> Materialization
  1. When removing entries from the inner map check whether that map is empty and remove it from the outer map.
  2. Add isEmpty() method to HiveMaterializedViewsRegistry

Why are the changes needed?

See description of jira.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

mvn test -Dtest=TestMaterializedViewsCache -pl ql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants