strongduanmu opened a new issue, #21379:
URL: https://github.com/apache/shardingsphere/issues/21379

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   
https://github.com/apache/shardingsphere/commit/f4080b1b3ddcaa9eb15e87e50a6fb0d2fe2baa7f
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy
   
   ### Expected behavior
   
   Execute `SELECT MIN(o.order_id), MIN(o.merchant_id), i.product_id FROM 
t_order o INNER JOIN t_order_item i ON o.order_id = i.order_id WHERE o.user_id 
= 10 GROUP BY i.product_id;`, and then return following result.
   
   ```sql
    min  | min | product_id 
   ------+-----+------------
    1000 |   1 |          1
    1001 |   2 |          2
   (2 rows)
   ```
   
   ### Actual behavior
   
   Wrong column label return.
   
   ```sql
    MIN  | MIN | product_id
   ------+-----+------------
    1000 |   1 |          1
    1001 |   2 |          2
   (2 rows)
   ```
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to