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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 5.5, 10.0, 10.1, 10.2, 10.3, 10.4, 10.5, 10.6
    • 10.4, 10.5, 10.6
    • GIS, Virtual Columns
    • 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

      Attachments

        Issue Links

          Activity

            People

              holyfoot Alexey Botchkov
              stephane@skysql.com VAROQUI Stephane
              Votes:
              7 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.