[ 
https://issues.apache.org/jira/browse/METAMODEL-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14281084#comment-14281084
 ] 

Fabian Welz commented on METAMODEL-78:
--------------------------------------

Hello Kasper, 
I felt free to suply a proposal for a fix https://reviews.apache.org/r/29995/
Gretings,
Fabian



> simple SELECT DISTINCT returns duplicates
> -----------------------------------------
>
>                 Key: METAMODEL-78
>                 URL: https://issues.apache.org/jira/browse/METAMODEL-78
>             Project: Apache MetaModel
>          Issue Type: Bug
>            Reporter: Ryan Berdeen
>
> Running {{SELECT DISTINCT name FROM table}} on a PojoDataContext returns 
> duplicate names. Adding {{ORDER BY name}} fixes it.
> It looks like 
> https://github.com/apache/incubator-metamodel/blob/master/core/src/main/java/org/apache/metamodel/QueryPostprocessDataContext.java#L159
>  matches, and returns without applying the {{DISTINCT}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to