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 11:13:01 UTC
[GitHub] [shardingsphere] gu-yan commented on issue #5708: jpaQueryFactory.selectDistinct error with SQL Error: 1064, SQLState: 42000
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