[MDEV-13045] Strange behavior when adding partitions to Json type table (Connect engine) Created: 2017-06-09 Updated: 2017-06-27 Resolved: 2017-06-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Connect |
| Affects Version/s: | 10.2.6 |
| Fix Version/s: | 10.1.25, 10.0.32 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alice Sherepa | Assignee: | Olivier Bertrand |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu 16.04 |
||
| Description |
|
Can not create a table, when adding partition on JSON type table (Connect engine), got en error "Unknown option 'FIELD_FORMAT' ".
While the same, but with alter table works, but data is presented 2 times (if I add 3 partitions, then 3 times) :
json file
|
| Comments |
| Comment by Olivier Bertrand [ 2017-06-26 ] |
|
Here again there is a documentation problem. The original doc I gave to MariaDB contains a paragraph saying: Partition engine issues 1. Engine specific column and index options are not recognized and cause a syntax error when the table is created. The workaround is to create the table in two steps, a CREATE TABLE statement followed by an ALTER TABLE statement. However this seems to be missing on https://mariadb.com/kb/en/mariadb/using-connect-partitioning-and-sharding/ Your other problem is apparently comming from a wrong table definition. The FILE_NAME should contain a wildcard (%s) entry enabling to create or use different files for the partitions. With no wildcard, all partitions use the same file. |
| Comment by Ian Gilfillan [ 2017-06-27 ] |
|
This text has been added to the documentation: |