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

Support SELECT ALL #7561

Closed
aquarapid opened this issue Feb 26, 2021 · 0 comments · Fixed by #7593
Closed

Support SELECT ALL #7561

aquarapid opened this issue Feb 26, 2021 · 0 comments · Fixed by #7593
Labels
Component: Query Serving Type: Enhancement Logical improvement (somewhere between a bug and feature)

Comments

@aquarapid
Copy link
Contributor

Vitess does not support the SELECT ALL construct. This is the counterpart to SELECT DISTINCT, and is the default. As such, you can just drop the ALL from the query, and everything will work as expected.

However, in the spirit of compatibility, we should support the keyword in this context.

Example against recent master:

mysql> create table t1(c1 int, primary key(c1));                                                                      
Query OK, 0 rows affected (0.10 sec)

mysql> SELECT ALL * from t1;
ERROR 1105 (HY000): vtgate: http://localhost:15001/: syntax error at position 11 near 'ALL'

Running the same against the underlying MySQL (8.0.21):

mysql> SELECT ALL * from t1;                    
Empty set (0.00 sec)
@aquarapid aquarapid added the Type: Enhancement Logical improvement (somewhere between a bug and feature) label Feb 26, 2021
@systay systay mentioned this issue Mar 3, 2021
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Query Serving Type: Enhancement Logical improvement (somewhere between a bug and feature)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants