Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7687

Can't create SPATIAL index on top of persistent virtual column

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.0.16
    • Fix Version/s: 10.0
    • Component/s: GIS
    • Labels:
      None

      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
      update zip_all set coord = POINT(lat,lon);
      alter table zip_all_bis ADD SPATIAL INDEX(coord)

      Thanks

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            serg Sergei Golubchik added a comment -

            Can't create SPATIAL index on top of persistent virtual column? Or not persistent?

            Show
            serg Sergei Golubchik added a comment - Can't create SPATIAL index on top of persistent virtual column? Or not persistent?
            Hide
            stephane@skysql.com VAROQUI Stephane added a comment -

            Hi Sergei, was persistent

            Show
            stephane@skysql.com VAROQUI Stephane added a comment - Hi Sergei, was persistent
            Hide
            serg Sergei Golubchik added a comment -

            what mariadb version?

            Show
            serg Sergei Golubchik added a comment - what mariadb version?

              People

              • Assignee:
                holyfoot Alexey Botchkov
                Reporter:
                stephane@skysql.com VAROQUI Stephane
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: