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

count(distinct xxx) not support #448

Closed
airclear opened this issue Apr 29, 2020 · 1 comment
Closed

count(distinct xxx) not support #448

airclear opened this issue Apr 29, 2020 · 1 comment

Comments

@airclear
Copy link

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 29, 2020

Duplicate issue. #439
Fix has been pushed #442.
You can try with the latest master branch

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