/*
 * Copyright 2016-2018 shardingsphere.io.
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * </p>
 */

package io.shardingsphere.core.parsing.antlr.sql.segment;

import java.util.Collection;
import java.util.LinkedList;

import io.shardingsphere.core.parsing.antlr.sql.segment.expr.ExpressionSegment;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;

/**
 * Select clause segment.
 * 
 * @author duhongjun
 */
@RequiredArgsConstructor
@Getter
public final class SelectClauseSegment implements SQLSegment {
    
    private final int selectListLastPosition;
    
    private final Collection<ExpressionSegment> expressions = new LinkedList<>();
    
    @Setter
    private boolean hasDistinct;
}

@@ -676,67 +676,8 @@
 t;%0A%0A
-import java.util.Collection;%0Aimport java.util.LinkedList;%0A%0A
 impo
@@ -752,16 +752,16 @@
 egment;%0A
+
 import l
@@ -836,16 +836,75 @@
 etter;%0A%0A
+import java.util.Collection;%0Aimport java.util.LinkedList;%0A%0A
 /**%0A * S
@@ -950,16 +950,35 @@
 hongjun%0A
+ * @author panjuan%0A
  */%0A@Req
@@ -1006,16 +1006,16 @@
 @Getter%0A
-
 public f
@@ -1070,24 +1070,81 @@
 ment %7B%0A    %0A
+    private final int firstSelectItemStartPosition;%0A    %0A
     private 

add firstSelectItemStartPosition