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

expression: builtin functions variance,var_pop,var_samp,std,stddev,stddev_pop,stddev_samp with DISTINCT should raise a syntax error #21382

Closed
wants to merge 5 commits into from

Conversation

hidehalo
Copy link
Contributor

@hidehalo hidehalo commented Nov 30, 2020

What problem does this PR solve?

Issue Number: close #19499

Problem Summary:

What is changed and how it works?

Proposal

we should fix it in parser.

parser's PR ref pingcap/parser#1123

What's Changed:

fixed in parser

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test

Release note

  • Bugfixes: builtin functions variance,var_pop,var_samp,std,stddev,stddev_pop,stddev_samp with DISTINCT should raise a syntax error

@hidehalo hidehalo requested a review from a team as a code owner November 30, 2020 08:50
@hidehalo hidehalo requested review from XuHuaiyu and removed request for a team November 30, 2020 08:50
@XuHuaiyu
Copy link
Contributor

XuHuaiyu commented Dec 2, 2020

Can we fix this issue in the parse phase?
https://github.com/pingcap/parser

@hidehalo
Copy link
Contributor Author

hidehalo commented Dec 2, 2020

Can we fix this issue in the parse phase?
https://github.com/pingcap/parser

@XuHuaiyu Yes, it's better! Shall we open a new issue in parser?

@hidehalo hidehalo changed the title planner: var_pop/stddev(distinct) should be failed expression: builtin functions variance,var_pop,var_samp,std,stddev,stddev_pop,stddev_samp with DISTINCT should raise a syntax error Dec 9, 2020
@hidehalo
Copy link
Contributor Author

I think it should close for now, if it is necessary for related issue, we just let it re-open.

@hidehalo hidehalo closed this Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

select var_pop(distinct xxx) could successfully execute in TiDB but failed in MySQL
2 participants