mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 06:46:10 +00:00
Previously `COUNT(DISTINCT <literal>)` was returning the same result as `COUNT(<literal>)` which is not correct as it should always return 1 if there is at least one matching row (bucket if there is a GROUP BY), or 0 otherwise. (cherry picked from commit 7f7d7562d43034907f432d39d0d66f490d78f4a8)