xiangfu0 commented on code in PR #20425:
URL: https://github.com/apache/pinot/pull/20425#discussion_r4795791728


##########
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotTableRestletResource.java:
##########
@@ -793,8 +801,12 @@ public ConfigSuccessResponse updateTableConfig(
 
       schema = _pinotHelixResourceManager.getTableSchema(tableNameWithType);
       Preconditions.checkState(schema != null, "Failed to find schema for 
table: %s", tableNameWithType);
+      MaterializedViewSourceAuthorization.check(tableConfig, headers, 
_pinotHelixResourceManager,

Review Comment:
   Validation now checks source permissions before loading the view schema. The 
regression test exercises the validation resource with view access and a denied 
source. The check on every update is intentional because even an unchanged 
query can be rescheduled. The PR has the operator upgrade note and the 
upgrade-incompat label.
   
   Updated in cfc4cf5f64.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to