[MDEV-5762] CONNECT PIVOT generates nonsense SQL Created: 2014-02-27 Updated: 2014-03-25 Resolved: 2014-03-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.8 |
| Fix Version/s: | 10.0.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Kolbe Kegel (Inactive) | Assignee: | Olivier Bertrand |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | connect-engine | ||
| Description |
|
The CONNECT engine is generating nonsense SQL for a PIVOT table I created:
From the general query log:
|
| Comments |
| Comment by Olivier Bertrand [ 2014-02-28 ] |
|
This was also fixed while fixing |
| Comment by Kolbe Kegel (Inactive) [ 2014-03-12 ] |
|
In what version is this actually fixed? The JIRA task says "Fix Version/s: 10.0.9, 10.0.10" and it definitely seems to still be broken in 10.0.9. I guess we wait for 10.0.10 to see if it is fixed there? |
| Comment by Olivier Bertrand [ 2014-03-13 ] |
|
All I know is that I pushed the fix some time ago but I have no control on when and what version it is included. |
| Comment by Olivier Bertrand [ 2014-03-13 ] |
|
BTW you can temporarily bypass this bug for this particular table by changing the table name from t1 to tt1 (for instance) |
| Comment by Elena Stepanova [ 2014-03-13 ] |
|
The bug |
| Comment by Kolbe Kegel (Inactive) [ 2014-03-25 ] |
|
Is this still not merged into main MariaDB 10.0.10? Is there a merge schedule for CONNECT fixes? I'm worried this isn't going to make it into 10.0.0 at this point... |
| Comment by Kolbe Kegel (Inactive) [ 2014-03-25 ] |
|
Also, the workaround of using a table name other than "t1" does not seem to work... mysql 10.0.9-MariaDB (root) [test] db1> CREATE TABLE fruit_pivot ENGINE=CONNECT TABLE_TYPE=pivot TABNAME=fruit_table; mysql 10.0.9-MariaDB (root) [test] db1> select * from fruit_pivot; |
| Comment by Kolbe Kegel (Inactive) [ 2014-03-25 ] |
|
On OS X, built from revno 4081: mysql 10.0.10-MariaDB (root) [test]> alter table fruity_fruits rename fruit_table; mysql 10.0.10-MariaDB (root) [test]> CREATE TABLE fruit_pivot ENGINE=CONNECT TABLE_TYPE=pivot TABNAME=fruit_table; mysql 10.0.10-MariaDB (root) [test]> select * from fruit_pivot; |
| Comment by Elena Stepanova [ 2014-03-25 ] |
Here is the merge task: https://mariadb.atlassian.net/browse/MDEV-5937 Meanwhile, if you want, you could try 10.0-connect tree. |
| Comment by Olivier Bertrand [ 2014-03-25 ] |
|
Bypass: sorry about that, in fact it does not work. But changing the length of one of the column names possibly works! |