This is an automated email from the ASF dual-hosted git repository.

sunnianjun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 0d4639245a8 For code format (#27433)
0d4639245a8 is described below

commit 0d4639245a8b6d51d122c6169d134cccf4f3059f
Author: Liang Zhang <[email protected]>
AuthorDate: Mon Jul 24 21:35:13 2023 +0800

    For code format (#27433)
---
 .../infra/binder/segment/select/projection/engine/ProjectionEngine.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/segment/select/projection/engine/ProjectionEngine.java
 
b/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/segment/select/projection/engine/ProjectionEngine.java
index c9c30df1684..ef5a6bc33bd 100644
--- 
a/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/segment/select/projection/engine/ProjectionEngine.java
+++ 
b/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/segment/select/projection/engine/ProjectionEngine.java
@@ -296,7 +296,7 @@ public final class ProjectionEngine {
     private void appendAverageDistinctDerivedProjection(final 
AggregationDistinctProjection averageDistinctProjection) {
         String distinctInnerExpression = 
averageDistinctProjection.getDistinctInnerExpression();
         String countAlias = 
DerivedColumn.AVG_COUNT_ALIAS.getDerivedColumnAlias(aggregationAverageDerivedColumnCount);
-        String innerExpression = 
averageDistinctProjection.getExpression().substring(averageDistinctProjection.getExpression().indexOf(Paren.PARENTHESES.getLeftParen()));;
+        String innerExpression = 
averageDistinctProjection.getExpression().substring(averageDistinctProjection.getExpression().indexOf(Paren.PARENTHESES.getLeftParen()));
         AggregationDistinctProjection countDistinctProjection =
                 new AggregationDistinctProjection(0, 0, AggregationType.COUNT, 
AggregationType.COUNT.name() + innerExpression, new 
IdentifierValue(countAlias), distinctInnerExpression, databaseType);
         String sumAlias = 
DerivedColumn.AVG_SUM_ALIAS.getDerivedColumnAlias(aggregationAverageDerivedColumnCount);

Reply via email to