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 2020/05/20 10:58:57 UTC

[GitHub] [shardingsphere] gu-yan opened a new issue #5708: jpaQueryFactory.selectDistinct

gu-yan opened a new issue #5708:
URL: https://github.com/apache/shardingsphere/issues/5708


   ## Bug Report
   
   ShardingSphere-JDBC
   sharding-jdbc-spring-boot-starter:4.1.0
   sharding-jdbc-spring-namespace:4.1.0
   
   env is 
   ### Expected behavior
   
   ### Actual behavior
   
   ### 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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] gu-yan commented on issue #5708: jpaQueryFactory.selectDistinct error with SQL Error: 1064, SQLState: 42000

Posted by GitBox <gi...@apache.org>.
gu-yan commented on issue #5708:
URL: https://github.com/apache/shardingsphere/issues/5708#issuecomment-631409405


   but program below is ok :
   ```
   List<Integer> existRiskPlaceTypeIds = jpaQueryFactory.select(qBaseRecord.riskPlaceTypeId)
                   .from(qBaseRecord)
                   .fetch();
   ```
   
   I think the reason is jpa convert selectDistinct to `select distinct` with some special info, sharding-jdbc cannot understand the convert result


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



[GitHub] [shardingsphere] kimmking closed issue #5708: jpaQueryFactory.selectDistinct got exception with: SQL Error: 1064, SQLState: 42000

Posted by GitBox <gi...@apache.org>.
kimmking closed issue #5708:
URL: https://github.com/apache/shardingsphere/issues/5708


   


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



[GitHub] [shardingsphere] gu-yan closed issue #5708: jpaQueryFactory.selectDistinct

Posted by GitBox <gi...@apache.org>.
gu-yan closed issue #5708:
URL: https://github.com/apache/shardingsphere/issues/5708


   


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



[GitHub] [shardingsphere] kimmking commented on issue #5708: jpaQueryFactory.selectDistinct got exception with: SQL Error: 1064, SQLState: 42000

Posted by GitBox <gi...@apache.org>.
kimmking commented on issue #5708:
URL: https://github.com/apache/shardingsphere/issues/5708#issuecomment-631417763


   duplicated with #5486


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