[MDEV-30530] SPIDER table error when using GENERATED VIRTUAL columns Created: 2023-01-31 Updated: 2023-11-28 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Spider, Virtual Columns |
| Affects Version/s: | 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11, 11.0 |
| Fix Version/s: | 10.4, 10.5, 10.6, 10.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Vincent Milum Jr | Assignee: | Yuchen Pei |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | Papercut | ||
| Description |
|
The SPIDER engine doesn't recognize GENERATED VIRTUAL columns, and is still trying to push down the column to the remote backend server. The SPIDER engine, much like other engines, should ignore the GENERATED VIRTUAL column from the storage backend itself.
|
| Comments |
| Comment by Andrew Hutchings [ 2023-02-01 ] | |||||||||||||||||
|
At the moment SPIDER does not support virtual columns as indicated here: https://mariadb.com/kb/en/generated-columns/ But MariaDB should have told you this at create time, so it is a bug. | |||||||||||||||||
| Comment by Roel Van de Paar [ 2023-02-11 ] | |||||||||||||||||
|
I cannot repeat this issue on a recent 10.6 (12a85c6caf595c685336455e416099b6a8020534) nor on 10.11 (b075191ba8598af6aff5549e6e19f6255aef258a). MTR testcase:
Results in the expected output:
| |||||||||||||||||
| Comment by Roel Van de Paar [ 2023-02-11 ] | |||||||||||||||||
|
darkain Can you please provide a detailed testcase for what you are seeing as well as the exact version you are using? Thank you! | |||||||||||||||||
| Comment by Vincent Milum Jr [ 2023-02-13 ] | |||||||||||||||||
|
Your test case there "worked" because the source table had the "d" column and so the value was generated there. In my case, I was trying to do the calculation on the spider side rather than the innodb side. Change:
Over to:
| |||||||||||||||||
| Comment by Roel Van de Paar [ 2023-02-18 ] | |||||||||||||||||
|
Thank you, that fixed the issue. ycp What are your thoughts on this? MTR testcase:
Leads to:
Present in all versions |