Hi, I am trying to create a search query with a `date` type and then sort
by it DESC. From the docs it looks like I should be able to do this with a
query like

<type> where name="test" orderby createdAt DESC


But when I use the AtlasClientV2 `dslSearchWithParams` it gives me this
error

[2018-03-12 17:53:34.833] Metadata service API
> org.apache.atlas.AtlasBaseClient$APIInfo@5219d161 failed with status 500
> (Internal Server Error) Response Body
> ({"errorCode":"ATLAS-500-00-004","errorMessage":"Discovery query failed
> schema where name=\"connie\" orderby \"createdAt\" DESC\""}) (of class
> com.stripe.annotation.atlas.ServerError)


Also, if I try it in the UI, it gives me the results but not in descending
order. Do you know if I am doing something wrong here? The date field I am
trying to sort by is also marked `isIndexable=true`.

Thanks,
Connie

Reply via email to