Skip to content
New issue

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

Return type of quantileExact* functions #3127

Open
kudrevatykh opened this issue Jan 22, 2025 · 0 comments
Open

Return type of quantileExact* functions #3127

kudrevatykh opened this issue Jan 22, 2025 · 0 comments
Labels
missing or needs improvement Docs that are not written, or not complete P1

Comments

@kudrevatykh
Copy link

kudrevatykh commented Jan 22, 2025

Company or project name

No response

Describe the issue

Documentation says that return type of quantileExact is Float64, Date or DateTime. https://github.com/ClickHouse/ClickHouse/blob/master/docs/en/sql-reference/aggregate-functions/reference/quantileexact.md

But actually return type of function depends on type of expression argument.
to check this you can run following query

SELECT toTypeName(quantileExact(number)),toTypeName(quantileExact(cast (number as int))), toTypeName(quantileExact(cast (number as float))) FROM numbers(10)

Additional context

No response

@Blargian Blargian transferred this issue from ClickHouse/ClickHouse Jan 22, 2025
@Blargian Blargian added missing or needs improvement Docs that are not written, or not complete P1 labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing or needs improvement Docs that are not written, or not complete P1
Projects
None yet
Development

No branches or pull requests

2 participants