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

count(distinct xxx) not support #221

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

count(distinct xxx) not support #221

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

@aetter
Copy link
Contributor

aetter commented Apr 30, 2020

Hi @airclear, this might be a bug with SQL rather than a problem with the documentation. I've opened a new issue over in the SQL repository.

@aetter aetter 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