You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by GitBox <gi...@apache.org> on 2018/11/07 10:12:00 UTC

[GitHub] kangkaisen commented on a change in pull request #246: Colocate Join (#245)

kangkaisen commented on a change in pull request #246: Colocate Join (#245)
URL: https://github.com/apache/incubator-doris/pull/246#discussion_r231446980
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/analysis/ModifyTablePropertiesClause.java
 ##########
 @@ -44,9 +45,15 @@ public void analyze(Analyzer analyzer) throws AnalysisException {
             throw new AnalysisException("Properties is not set");
         }
 
-        if (!Catalog.getCurrentCatalog().getAuth().checkGlobalPriv(ConnectContext.get(), PrivPredicate.ALTER)) {
+        if (properties.size() == 1 && properties.containsKey(KEY_COLOCATE_WITH)) {
 
 Review comment:
   Currently, alter table colocate_with property need global ALTER Privilege.  so normal user  couldn't alter and we shouldn't grant  normal user  global ALTER Privilege.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@doris.apache.org
For additional commands, e-mail: dev-help@doris.apache.org