[MDEV-27694] regression? Join using derived with aggregation returns incorrect results Created: 2022-01-31  Updated: 2022-01-31  Resolved: 2022-01-31

Status: Closed
Project: MariaDB Server
Component/s: Data Manipulation - Subquery
Affects Version/s: 10.6.5, 10.4, 10.5, 10.6, 10.7
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Jens-U. Mozdzen Assignee: Alice Sherepa
Resolution: Duplicate Votes: 0
Labels: None
Environment:

openSUSE Leap


Issue Links:
Duplicate
is duplicated by MDEV-27510 Query returns wrong result when using... Closed
Relates
relates to MDEV-25714 Join using derived with aggregation r... Closed

 Description   

We see the same error as described (and fixed for some versions <= 10.5.x) in MDEV-25714 on MariaDB 10.6.5.

Test case and description was already included in MDEV-25714 but I don't know if a new issue is required, or I should have re-opened that issue, or create this new issue...



 Comments   
Comment by Alice Sherepa [ 2022-01-31 ]

Thanks!
I repeated the bug with the test case, that was provided in MDEV-25714 by Daniel Howard,
it is fixed by the commit 00412656719bba by Igor Bababev (https://github.com/MariaDB/server/commit/00412656719bba79cf9a350db05065b0b7007680), MDEV-27510, will be included in the next release

Comment by Jens-U. Mozdzen [ 2022-01-31 ]

Thank you for the confirmation.

(In case you have automated release tests, you might want to consider including Daniels steps Reading through various tickets it appears that this problem reared its ugly head for more than one version.)

Generated at Thu Feb 08 09:54:52 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.