[MDEV-3551] LP:938131 - Subquery materialization is not used in CREATE TABLE SELECT Created: 2012-02-21 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Igor Babaev | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Using mariadb-5.3 create and populate table t1,t2 with the following commands: CREATE TABLE t1(a int); Then check that the following query uses subquery materialization: MariaDB [test]> EXPLAIN SELECT * FROM t1 WHERE a IN (SELECT * FROM t2 GROUP BY a HAVING a > 1);
---
--- In debugger check that materialization is not used for : CREATE TABLE t3 SELECT * FROM t1 WHERE a IN (SELECT * FROM t2 GROUP BY a HAVING a > 1); |
| Comments |
| Comment by Elena Stepanova [ 2012-03-18 ] |
|
Re: Subquery materialization is not used in CREATE TABLE SELECT |
| Comment by Rasmus Johansson (Inactive) [ 2012-03-18 ] |
|
Launchpad bug id: 938131 |