[MDEV-11311] Create federated table does not work as expected. Created: 2016-11-18 Updated: 2017-05-24 Resolved: 2017-05-24 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Federated |
| Affects Version/s: | 10.1.14, 10.1, 10.2 |
| Fix Version/s: | 10.1.24, 10.2.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Matt | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian 8.5 - linux 3.16.0-4 on vmware |
||
| Description |
|
When attempting to create a connection to a specific table using the federated storage engine, an error is thrown.
If I remove this key
it works as expected. Here is the full create statement for the table.
All other tables on this database are able to be added normally. |
| Comments |
| Comment by Elena Stepanova [ 2016-11-18 ] | ||||||||||||||||||
|
You quoted the full create statement for the remote table, what was one for the FEDERATED table? | ||||||||||||||||||
| Comment by Matt [ 2016-11-18 ] | ||||||||||||||||||
|
CREATE TABLE `t_topics_indexes` ENGINE=FEDERATED CONNECTION='mysql56test-cdb001' | ||||||||||||||||||
| Comment by Matt [ 2016-11-18 ] | ||||||||||||||||||
|
And the create server command: | ||||||||||||||||||
| Comment by Elena Stepanova [ 2016-12-17 ] | ||||||||||||||||||
|
Thanks, I was able to reproduce it. The problem is that the length of the index. In the underlying table, the length is limited, and everything is going fine. But apparently upon table discovery the explicit limit is ignored.
| ||||||||||||||||||
| Comment by Bruno Perel [ 2017-01-15 ] | ||||||||||||||||||
|
In my case, the error appears if the remote table has at least one "FULLTEXT" index. So like Elena says, it's probably a matter of index size. |