Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing on ordering by a field whose class is not in the select #2293

Open
danielabutano opened this issue Oct 5, 2020 · 0 comments
Open

Comments

@danielabutano
Copy link
Member

Example:
<query model="genomic" view="Cases.geoLocation.id" constraintLogic="A and B" sortOrder="Cases.date DESC"> <constraint path="Cases.geoLocation.country" value="United Kingdom" op="=" code="A"/> <constraint path="Cases.date" value="2020-04-03" op=">=" code="B"/> </query>
Error message:
org.intermine.objectstore.ObjectStoreException: Field a1_.intermine_date in the ORDER BY list must be in the SELECT list, or
the whole QueryClass org.intermine.model.bio.Cases must be in the SELECT list, or the query made non-distinct"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant