Bug #80559 EXPLAIN CREATE TABLE .. AS SELECT .. does not work
| Submitted: | 29 Feb 2016 14:32 | Modified: | 29 Feb 2016 15:17 |
|---|---|---|---|
| Reporter: | Justin Swanhart | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Parser | Severity: | S3 (Non-critical) |
| Version: | 5.7.11 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[29 Feb 2016 14:32]
Justin Swanhart
[29 Feb 2016 14:37]
Justin Swanhart
CREATE .. SELECT .. is a combination of DDL and DML. The statement should be explainable because it contains DML. If you want to mark it as FR you can, but this IS A BUG (do not mark NOT A BUG!) even though CREATE is not documented as being explainable, CREATE .. SELECT is DML.
[29 Feb 2016 14:43]
Roy Lyseng
IMHO CREATE ... SELECT is a DDL statement with an embedded DML statement.
[29 Feb 2016 15:16]
MySQL Verification Team
Justin, I thought of making this "!Bug", but you wrote to us that we should not dare doing something like that. However, on the other hand, I agree with Roy totally. On further reflection , I must admit that this is not documented well, so I am verifying this one as a documentation bug !!!!
[29 Feb 2016 15:17]
Justin Swanhart
Well yeah, which I why I said it is a combination. It really should not be hard to support. It should work just like INSERT (show an ALL for the table to be created) and plan the SELECT. If I get around to writing a patch I will. This is not a DOC bug though. The documentation is correct. Changing to "parser".
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.052 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.