[MDEV-20502] Queries against spider tables return wrong values for columns following constant declarations. Created: 2019-09-04 Updated: 2023-02-02 Resolved: 2020-05-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Spider |
| Affects Version/s: | 10.4.7, 10.3.25 |
| Fix Version/s: | 10.4.13, 10.5.3, 10.3.28 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Juan | Assignee: | Kentoku Shiba (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
On source server:
On spider server:
|
| Comments |
| Comment by Kentoku Shiba (Inactive) [ 2020-04-14 ] | ||||||||||||||||||||
|
When executing a query like "select id, 0 as const, val from ...", there are 3 columns(items) in Query->select at handlerton->create_group_by(). After that, MariaDB makes a temporary table with 2 columns. | ||||||||||||||||||||
| Comment by Igor Babaev [ 2020-04-15 ] | ||||||||||||||||||||
|
Kentoku, | ||||||||||||||||||||
| Comment by Kentoku Shiba (Inactive) [ 2020-04-24 ] | ||||||||||||||||||||
|
igor, | ||||||||||||||||||||
| Comment by Igor Babaev [ 2020-05-04 ] | ||||||||||||||||||||
|
Kentoku, The patch is ok. I would suggest only to add the following to your test case:
| ||||||||||||||||||||
| Comment by Igor Babaev [ 2020-05-04 ] | ||||||||||||||||||||
|
The patch is ok, but see my feedback in the last comment. | ||||||||||||||||||||
| Comment by Kentoku Shiba (Inactive) [ 2020-05-05 ] | ||||||||||||||||||||
|
Add test cases, rebuild, test, commit, push | ||||||||||||||||||||
| Comment by Valerii Kravchuk [ 2020-12-10 ] | ||||||||||||||||||||
|
Can we get the fix backported to 10.3 too? | ||||||||||||||||||||
| Comment by Sergei Golubchik [ 2021-01-12 ] | ||||||||||||||||||||
|
done |