Bug #112161 | Derived table with rollup returns wrong result | ||
---|---|---|---|
Submitted: | 23 Aug 2023 12:55 | Modified: | 23 Aug 2023 14:00 |
Reporter: | Hope Lee (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S3 (Non-critical) |
Version: | 8.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[23 Aug 2023 12:55]
Hope Lee
[23 Aug 2023 14:00]
MySQL Verification Team
Hi Mr. Lee, Thank you for your bug report. We have expanded on your test case. We ran the query from the inner SELECT query , then on the TABLE created from the same INNER select, then creating a VIEW from the same inner SELECT and last, your own test with a derived table. ROLLUP results are not missing from the inner SELECT, nor from the TABLE created from the same SELECT. However, they are missing from the VIEW and from the derived table. Here are the results: -------------------- INNER QUERY: layer_1_column_0 layer_1_column_1 1 1 NULL 1 CREATE TABLE FROM SELECT layer_1_column_0 layer_1_column_1 1 1 NULL 1 CREATE VIEW FROM SELECT layer_1_column_0 layer_1_column_1 1 1 DERIVED TABLE layer_1_column_0 layer_1_column_1 1 1 -------------------- We do not think that this is expected behaviour. This report is now a verified bug.
[23 Aug 2023 14:31]
MySQL Verification Team
Changing category.