Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5.34, 10.0.8
-
None
-
None
-
mysql Ver 15.1 Distrib 5.5.34-MariaDB, for debian-linux-gnu (x86_64) using readline 5.1
Ubuntu 12.04 LTS
Description
Trying to simplify the context for this problem, but let me know if you require additional information.
I have a table named base with several columns, including a field named id.
Each field has a BTREE index created via create index X on base(X)
I've found that queries of the type select id from base where X = 'value1' and Y = 'value2' do not return the correct number of results.
If I do a select id, X from base where Y = 'value2' order by X, I can see a full and accurate list of all combinations of X and Y = 'value2', since this query does not execute an index_merge (running an explain on this shows that its a ref query using the index on Y).
But running select id from base where X = 'value1' and Y = 'value2' clearly shows that some rows are dropped from the results when compared to what you see with select id, X from base where Y = 'value2' order by X. Running an explain shows that an index_merge is run on the indices on both X and Y.
Rebuilding the indices does not fix the problem, and results in the same rows consistently being dropped from the query results.
I can provide firmer context with actual query outputs if this is too abstract. Thanks for your help.
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Elena Stepanova [ elenst ] |
Due Date | 2014-02-28 |
Attachment | 1krows_dump_min.sql [ 26401 ] |
Attachment | mdev5555.test [ 26500 ] | |
Fix Version/s | 10.0.9 [ 14400 ] | |
Fix Version/s | 5.5.36 [ 14600 ] | |
Affects Version/s | 10.0.8 [ 14200 ] | |
Assignee | Elena Stepanova [ elenst ] | Sergei Petrunia [ psergey ] |
Due Date | 2014-02-28 |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Workflow | defaullt [ 33719 ] | MariaDB v2 [ 42989 ] |
Workflow | MariaDB v2 [ 42989 ] | MariaDB v3 [ 62685 ] |
Workflow | MariaDB v3 [ 62685 ] | MariaDB v4 [ 147428 ] |
Hi,
Yes, it would be great if you could provide a data dump for the tables involved into the query, and the actual query. If the data is sensitive, you can upload it to the private section of our FTP (ftp://ftp.askmonty.org/private/)
We have some open bugs regarding index_merge, but it's difficult to say whether your case is related to them or not without the actual data.