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 subquery in aggregate syntax #7857

Open
jycor opened this issue May 13, 2024 · 0 comments
Open

support subquery in aggregate syntax #7857

jycor opened this issue May 13, 2024 · 0 comments
Labels
correctness We don't return the same result as MySQL good repro Easily reproducible bugs

Comments

@jycor
Copy link
Contributor

jycor commented May 13, 2024

This parses in MySQL, but throws syntax error in dolt.

mysql> create table t (i int);
Query OK, 0 rows affected (0.0241 sec)

mysql> insert into t values (1);
Query OK, 0 rows affected (0.0141 sec)

mysql> select i, i = any(select 1) from t;
+---+--------------------+
| i | i = some(select 1) |
+---+--------------------+
| 1 |                  1 |
+---+--------------------+
1 row in set (0.0006 sec)
@jycor jycor added good repro Easily reproducible bugs correctness We don't return the same result as MySQL labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
correctness We don't return the same result as MySQL good repro Easily reproducible bugs
Projects
None yet
Development

No branches or pull requests

1 participant