You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
I realized that ORDER BY doesn't work properly on COUNT(DISTINCT x) queries. Instead of adding the given sort field, it adds the _count field as a default sort field.
GET /_opendistro/_sql/_explain
{
"query": "SELECT count(distinct id) as bal FROM accounts GROUP BY topic_id ORDER BY bal DESC"
}
I realized that
ORDER BY
doesn't work properly onCOUNT(DISTINCT x)
queries. Instead of adding the given sort field, it adds the_count
field as a default sort field.Incorrect DSL:
Expected DSL:
The text was updated successfully, but these errors were encountered: