Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Possible bug with count(distinct) #454

Closed
aetter opened this issue Apr 30, 2020 · 1 comment
Closed

Possible bug with count(distinct) #454

aetter opened this issue Apr 30, 2020 · 1 comment

Comments

@aetter
Copy link
Contributor

aetter commented Apr 30, 2020

Originally reported as opendistro/for-elasticsearch-docs#221

select distinct host.name from metricbeat where `@timestamp` > '2020-04-29T06:12:34.352Z'  

return 7 rows:

{
"schema": [
{
"name": "host.name",
"type": "keyword"
}
],
"total": 7,
"datarows": [
[
"xxxxx"
]
,
[
"xxxxx"
]
,
[
"xxxxx"
]
,
[
"xxxxx"
]
,
[
"xxxxx"
]
,
[
"xxxxx"
]
,
[
"xxxxx"
]
],
"size": 7,
"status": 200
}
select count( distinct host.name ) as hostcount from metricbeat where `@timestamp` > '2020-04-29T06:12:34.352Z'  

return 0

@penghuo
Copy link
Contributor

penghuo commented Apr 30, 2020

duplicate with #448? It has been fixed.

@penghuo penghuo closed this as completed Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants