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 2022/06/21 07:01:25 UTC

[GitHub] [shardingsphere] IneverStop commented on issue #18487: Can not get correct result

IneverStop commented on issue #18487:
URL: https://github.com/apache/shardingsphere/issues/18487#issuecomment-1161340774

   ```java
   org.apache.shardingsphere.infra.binder.segment.select.projection.engine.ProjectionEngine
   
       private Collection<ColumnProjection> getColumnProjections(final Collection<Projection> projections) {
           Collection<ColumnProjection> result = new LinkedList<>();
           for (Projection each : projections) {
               if (each instanceof ColumnProjection) {
                   result.add((ColumnProjection) each);
               }
               if (each instanceof ShorthandProjection) {
                   result.addAll(((ShorthandProjection) each).getActualColumns().values());
               }
           }
           return result;
       }
   ```
   
   `id + 1` is a `ExpressionProjection`, so this function will skip `ExpressionProjection`, may be this occur the problem.


-- 
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