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

implement the rest of unsupported aggregate functions #7623

Open
zz-jason opened this issue Sep 5, 2018 · 0 comments

Comments

@zz-jason
Copy link
Member

commented Sep 5, 2018

At present, the aggregate functions that TiDB supports are:

  • AVG()
  • BIT_AND()
  • BIT_OR()
  • BIT_XOR()
  • COUNT()
  • COUNT(DISTINCT)
  • GROUP_CONCAT()
  • MAX()
  • MIN()
  • SUM()

In order to be compatible with MySQL and Improve the usability of TiDB, the following functions should also be supported in TiDB:

Name Description
STD() Return the population standard deviation
STDDEV() Return the population standard deviation
STDDEV_POP() Return the population standard deviation
STDDEV_SAMP() Return the sample standard deviation
VARIANCE() Return the population standard variance
VAR_POP() Return the population standard variance
VAR_SAMP() Return the sample variance
JSON_ARRAYAGG() Return result set as a single JSON array
JSON_OBJECTAGG() Return result set as a single JSON object

An implementation checklist:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.