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

zhangliang 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 d32f6336267 Code format for AggregationProjection (#34006)
d32f6336267 is described below

commit d32f6336267bffbd948e338961dc6a08b34d0994
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Dec 11 12:27:43 2024 +0800

    Code format for AggregationProjection (#34006)
    
    * Code format for BroadcastSQLRouter
    
    * Code format for AggregationProjection
---
 .../select/projection/impl/AggregationProjection.java     | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git 
a/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/context/segment/select/projection/impl/AggregationProjection.java
 
b/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/context/segment/select/projection/impl/AggregationProjection.java
index 0493904fd8b..78ab5dd906e 100644
--- 
a/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/context/segment/select/projection/impl/AggregationProjection.java
+++ 
b/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/context/segment/select/projection/impl/AggregationProjection.java
@@ -62,7 +62,16 @@ public class AggregationProjection implements Projection {
         this.expression = expression;
         this.alias = alias;
         this.databaseType = databaseType;
-        this.separator = null;
+        separator = null;
+    }
+    
+    /**
+     * Get separator.
+     *
+     * @return separator
+     */
+    public Optional<String> getSeparator() {
+        return Optional.ofNullable(separator);
     }
     
     @Override
@@ -82,8 +91,4 @@ public class AggregationProjection implements Projection {
     public final Optional<IdentifierValue> getAlias() {
         return Optional.ofNullable(alias);
     }
-    
-    public Optional<String> getSeparator() {
-        return Optional.ofNullable(separator);
-    }
 }

Reply via email to