MySQL Forums
Forum List  »  Partitioning

Re: wrong output generate while using partitions
Posted by: Rick James
Date: December 16, 2014 04:28PM

Jon, when you ran it, what did the EXPLAIN say? What version were you running? For me, it did not say index merge / intersect.

This bug fix may be relevant:

----- 2014-09-25 5.7.5 Milestone 15 & 2014-03-27 5.6.17 -- Bugs Fixed -- Partitioning -----

When the index_merge_intersection flag (enabled by default) or the index_merge_union flag was enabled by the setting of the optimizer_switch ( ) system variable, queries returned incorrect results when executed against partitoned tables that used the MyISAM ( ) storage engine, as well as partitioned InnoDB ( ) tables that lacked a primary key. (Bug #18167648)

Shivam, always have an explicit PRIMARY KEY on InnoDB tables.
So do one of these:
* Add a PK
* Upgrade to 5.6.17 (or later)
* Turn off index_merge_intersection

Options: ReplyQuote

Written By
Re: wrong output generate while using partitions
December 16, 2014 04:28PM

Sorry, you can't reply to this topic. It has been closed.

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.