You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a simplest way I could find to reproduce the bug.
After mysql --port 9306, I enter these SQL lines into an empty DB:
createtablecategory (groupid int);
insert into category (groupid) values (1), (2), (1), (3), (4), (4);
-- The data-- Plain GROUP BYselect groupid from category GROUP BY groupid;
show meta like'total%';
-- | total | 4 |-- | total_found | 4 |-- With HAVINGselect groupid, count(*) as c from category GROUP BY groupid HAVING c >1;
-- +---------+------+-- | groupid | c |-- +---------+------+-- | 1 | 2 |-- | 4 | 2 |-- +---------+------+
show meta like'total%';
-- +----------------+-------+-- | Variable_name | Value |-- +----------------+-------+-- | total | 2 |-- | total_found | 4 |-- | total_relation | eq |-- +----------------+-------+
There were only 2 rows in the response to the last query, yet the metadata state that there were 4, which is wrong.
The bug was detected with real-world data and many queries: HAVING seems to have no influence at all on the total_found value.
I didn't test with the testing release of Manticore since I saw no mention of a similar bug in the issues or the changelog.
Manticore Search Version:
6.2.12
Operating System Version:
Debian stable
Have you tried the latest development version?
Yes
Internal Checklist:
To be completed by the assignee. Check off tasks that have been completed or are not applicable.
Task estimated
Specification created, reviewed, and approved
Implementation completed
Tests developed
Documentation updated
Documentation proofread
Changelog updated
The text was updated successfully, but these errors were encountered:
Bug Description:
This is a simplest way I could find to reproduce the bug.
After
mysql --port 9306
, I enter these SQL lines into an empty DB:There were only 2 rows in the response to the last query, yet the metadata state that there were 4, which is wrong.
The bug was detected with real-world data and many queries: HAVING seems to have no influence at all on the
total_found
value.I didn't test with the testing release of Manticore since I saw no mention of a similar bug in the issues or the changelog.
Manticore Search Version:
6.2.12
Operating System Version:
Debian stable
Have you tried the latest development version?
Internal Checklist:
To be completed by the assignee. Check off tasks that have been completed or are not applicable.
The text was updated successfully, but these errors were encountered: