xiangfu0 commented on code in PR #20425:
URL: https://github.com/apache/pinot/pull/20425#discussion_r4795202870
##########
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:
Two things. `POST /tables/validate` (`checkTableConfig`, line 846) doesn't
call this check although it validates the same submitted config; should it? And
on update the check runs even when the view definition hasn't changed, so
someone who may edit the table config but can't read the source can no longer
change unrelated settings. If that is intended, it needs an upgrade note and a
label.
--
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]