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

Call For Participation: finish the unsupported aggregate functions #7623

Closed
6 tasks done
zz-jason opened this issue Sep 5, 2018 · 14 comments · Fixed by #19957
Closed
6 tasks done

Call For Participation: finish the unsupported aggregate functions #7623

zz-jason opened this issue Sep 5, 2018 · 14 comments · Fixed by #19957
Labels
challenge-program feature/accepted This feature request is accepted by product managers help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/P3 The issue has P3 priority. Assigned to backlog. sig/execution SIG execution type/compatibility type/feature-request Categorizes issue or PR as related to a new feature.

Comments

@zz-jason
Copy link
Member

zz-jason commented Sep 5, 2018

All issues are open and welcomed to contributors. You can join #sig-exec on tidb community slack to discuss and get help from someone.

Description

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() Alias for STDDEV_POP function
STDDEV() Alias for STDDEV_POP function
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:

Difficulty

  • Medium

Score

  • 3000

Mentor(s)

Recommended Skills

  • SQL Optimization
  • Golang Profiling
  • Code Refactoring
@zz-jason zz-jason added the sig/execution SIG execution label Sep 5, 2018
@zz-jason zz-jason self-assigned this Sep 5, 2018
@zz-jason zz-jason added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Sep 7, 2018
@zz-jason zz-jason changed the title implement the rest of unsupported aggregate functions Call For Participation: finish the unsupported aggregate functions Jan 21, 2020
@zz-jason zz-jason removed their assignment Aug 5, 2020
@Win-Man
Copy link
Contributor

Win-Man commented Aug 5, 2020

Pick up

@ghost ghost added priority/P3 The issue has P3 priority. Assigned to backlog. type/compatibility labels Aug 13, 2020
@zz-jason zz-jason added type/feature-request Categorizes issue or PR as related to a new feature. feature/accepted This feature request is accepted by product managers labels Aug 14, 2020
@ti-challenge-bot
Copy link

Pick up success.

@ti-challenge-bot
Copy link

This issue already picked by Blue-Sail.

1 similar comment
@ti-challenge-bot
Copy link

This issue already picked by Blue-Sail.

@ti-challenge-bot ti-challenge-bot bot removed the picked label Sep 8, 2020
@ti-challenge-bot
Copy link

Give up success.

@arthuryangcs
Copy link
Contributor

/pick-up JSON_ARRAYAGG

@ti-challenge-bot
Copy link

Pick up success.

@ti-challenge-bot
Copy link

@arthuryangcs You did not submit PR within 7 days, so give up automatically.

@ti-challenge-bot ti-challenge-bot bot removed the picked label Sep 17, 2020
@arthuryangcs
Copy link
Contributor

/pick-up JSON_ARRAYAGG

@ti-challenge-bot
Copy link

Pick up success.

@ti-challenge-bot
Copy link

@arthuryangcs You did not submit PR within 7 days, so give up automatically.

@ti-challenge-bot ti-challenge-bot bot removed the picked label Sep 25, 2020
@arthuryangcs
Copy link
Contributor

/pick-up JSON_ARRAYAGG

@ti-challenge-bot
Copy link

Pick up success.

@ti-challenge-bot
Copy link

@arthuryangcs You did not submit PR within 7 days, so give up automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
challenge-program feature/accepted This feature request is accepted by product managers help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/P3 The issue has P3 priority. Assigned to backlog. sig/execution SIG execution type/compatibility type/feature-request Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants