You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/12/28 06:38:31 UTC

[GitHub] [shardingsphere] RaigorJiang commented on a change in pull request #14367: #14346 [DistSQL] Optimize query results of ```SHOW AUTHORITY RULE```

RaigorJiang commented on a change in pull request #14367:
URL: https://github.com/apache/shardingsphere/pull/14367#discussion_r775747832



##########
File path: shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/text/distsql/ral/common/show/executor/ShowAuthorityRuleExecutor.java
##########
@@ -55,7 +55,7 @@ protected MergedResult createMergedResult() {
         }
         AuthorityRuleConfiguration authorityRuleConfiguration = authorityRuleConfigurationOptional.get();
         List<Object> row = new LinkedList<>();
-        row.add(authorityRuleConfiguration.getUsers().stream().map(each -> each.getGrantee() + ":" + each.getPassword()).collect(Collectors.joining("; ")));
+        row.add(authorityRuleConfiguration.getUsers().stream().map(each -> each.getGrantee() + "").collect(Collectors.joining("; ")));

Review comment:
       Why is `+ ""` needed here, can it be removed or replaced by toString()?




-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org