-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
set: shouldn't support 'select ... into outfile ... union select ... ' and 'select ... union select SQL_BUFFER_RESULT ... ' statements #19097
Comments
/label sig/execution |
I am not sure if |
It's a compatibility issue about the parser. So I move the sig/exec to sig/ddl and change type/bug to type/compatibility. |
So the second SQL in the issue |
For the second SQL, we can document that |
Reason: So SQL like However, it will be parsed successfully in TIDB because every single select-statement can be recognized with an into-clause suffix. The reason why the output is shown on the result rather than be stored in the file is: building an internal select for union statement will ignore the into-option. As a conclusion above, we only support the into-option for single select-statement, better doc it on our website. If we wanna fully be compatible with this, it will take some time. |
PTAL @wjhuang2016 @bb7133 |
I think we should make TiDB be compatible with MySQL |
Sounds that is not 'difficult/easy'. What's the estimated work time to change the parser? |
@AilinKid Any progress? |
@tangenta Any progress? |
I tried to extract |
You can ask amao or kenny for help. |
yes, it's quite hard to solve. I suspect there will be some other work after the parser is finished. |
Changing it to minor since it's a minor compatibility issue, not a bug. |
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
in MySQL or MariaDB
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
SIG slack channel
#sig-exec
Score
Mentor
The text was updated successfully, but these errors were encountered: