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 2019/08/09 05:58:47 UTC

[GitHub] [incubator-shardingsphere] tristaZero opened a new issue #2715: Optimization of `DISTINCT` SQL.

tristaZero opened a new issue #2715: Optimization of `DISTINCT` SQL.
URL: https://github.com/apache/incubator-shardingsphere/issues/2715
 
 
   ### Optimization of `DISTINCT` SQL.
   
   - [x] Fix bug: can not execute`select distinct t_order.order_id from t_order;`
   - [x] Support to use `select distinct t_order.*, t_order_item.order_id from t_order, t_order_item where t_order.order_id = t_order_item.order_id`
   > when there is `*` in sql, we need to get exact columns from shardingMetadata.
   - [x] Add integrated test cases of `distinct` SQL to cover SQLS mentioned above.
   - [x] Instead of `columnLabelAndIndexMap`, use `QueryResultMetaData` for DistinctQueryResult
   - [x] Instead of `TreeMap`, we should consider to use `HashMultimap` for QueryResultMetaData

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services