Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5818,11 +5818,11 @@ public void testAnalyzeMaterializedViewWithAccessControl()
TestingAccessControlManager accessControlManager = new TestingAccessControlManager(transactionManager, emptyEventListenerManager(), new SecretsResolver(ImmutableMap.of()));
accessControlManager.setSystemAccessControls(List.of(AllowAllSystemAccessControl.INSTANCE));

analyze("SELECT * FROM fresh_materialized_view");
analyze(CLIENT_SESSION, "SELECT * FROM fresh_materialized_view", accessControlManager);

// materialized view analysis should succeed even if access to storage table is denied when querying the table directly
accessControlManager.deny(privilege("t2.a", SELECT_COLUMN));
analyze("SELECT * FROM fresh_materialized_view");
analyze(CLIENT_SESSION, "SELECT * FROM fresh_materialized_view", accessControlManager);

accessControlManager.deny(privilege("fresh_materialized_view.a", SELECT_COLUMN));
assertFails(
Expand Down
Loading