[MDEV-7687] Can't create SPATIAL index on top of persistent virtual column Created: 2015-03-10 Updated: 2023-04-27 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | GIS, Virtual Columns |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2, 10.3, 10.4, 10.5, 10.6 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | VAROQUI Stephane | Assignee: | Alexey Botchkov |
| Resolution: | Unresolved | Votes: | 7 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
I don't have the details of error reported , but i remember server complaining about unique index The workaround was to materialized the GEOM column not using virtual column : alter table zip_all add column coord point not null Thanks |
| Comments |
| Comment by Sergei Golubchik [ 2015-03-10 ] | |||||||||||
|
Can't create SPATIAL index on top of persistent virtual column? Or not persistent? | |||||||||||
| Comment by VAROQUI Stephane [ 2015-03-10 ] | |||||||||||
|
Hi Sergei, was persistent | |||||||||||
| Comment by Sergei Golubchik [ 2015-03-10 ] | |||||||||||
|
what mariadb version? | |||||||||||
| Comment by Maxim Fedulov [ 2016-03-21 ] | |||||||||||
|
Got same issue.
mysql Ver 15.1 Distrib 10.1.11-MariaDB, for FreeBSD10.2 (amd64) using readline 6.3 | |||||||||||
| Comment by Sergei Golubchik [ 2017-04-03 ] | |||||||||||
|
This happens because all generated columns are considered NULLable. This is wrong, the server should be able to derive generated column's nullability automatically. Optionally we could allow user to force it, as in MDEV-10964 |