-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Support some analytical functions #19405
Comments
The feature request looks good to me. I'm thinking about if there any other possible names for these functions. Do other databases have the same functions, what's their function name for these functions? |
In Spark SQL there is a There is a function @zz-jason FYI. |
Since we have supported |
@zz-jason That's fine. |
Feature Request
Is your feature request related to a problem? Please describe:
In some analytic scenes, we cannot write SQL conveniently with funtions currently supported by TiDB.
For example, if you want to get a
n-quantile
, you have to write a SQL as follows, wherex
representscount_of_records / n
:While in
Clickhouse
, a functionquantileExact
is enough:Describe the feature you'd like:
Support following functions:
quantileExact
, reference: https://clickhouse.tech/docs/en/sql-reference/aggregate-functions/reference/quantileexacttoStartOfXxx
family (Xxx
represents time unit, which can beDay
,Hour
,Minute
etc.), reference: https://clickhouse.tech/docs/en/sql-reference/functions/date-time-functions/#tostartofdayIt had better make the functions pushed to TiFlash.
Describe alternatives you've considered:
None.
Teachability, Documentation, Adoption, Migration Strategy:
None.
The text was updated successfully, but these errors were encountered: