We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
countDistinctIf
This doesn't work in HogQL, but works in ClickHouse:
SELECT sumDistinct(x) FROM (SELECT number % 13 AS x FROM numbers(1000))
Implement the -Distinct combinator for aggregate functions ClickHouse/ClickHouse#10930 / expose these ClickHouse functions.
-Distinct
Use the aggregateFn(DISTINCT ...) syntax:
aggregateFn(DISTINCT ...)
SELECT sum(DISTINCT x) FROM (SELECT number % 13 AS x FROM numbers(1000))
ClickHouse/ClickHouse#11517 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem?
This doesn't work in HogQL, but works in ClickHouse:
Describe the solution you'd like
Implement the
-Distinct
combinator for aggregate functions ClickHouse/ClickHouse#10930 / expose these ClickHouse functions.Describe alternatives you've considered
Use the
aggregateFn(DISTINCT ...)
syntax:Additional context
ClickHouse/ClickHouse#11517 (comment)
The text was updated successfully, but these errors were encountered: