[
https://issues.apache.org/jira/browse/METAMODEL-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kasper Sørensen resolved METAMODEL-78.
--------------------------------------
Resolution: Fixed
Fix Version/s: 4.3.2
Assignee: Fabian Welz
Fixed as of commit c706df83088150a466d94625ed14f913f52adce9
> 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
> Assignee: Fabian Welz
> Fix For: 4.3.2
>
>
> 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)