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

VEC_DISTANCE does not work in triggers

Details

    Description

      create table t (v vector(1) not null, vector(v), d float);
      create trigger tr before insert on t for each row set new.d = vec_distance(new.v,0x30303030);
      insert into t (v) values (0x31313131);
      drop table t;
      

      bb-11.8-MDEV-35450-vec_distance b4c96d33bd38a9008e903aaff12d29c6e904eeed

      mysqltest: At line 3: query 'insert into t (v) values (0x31313131)' failed: ER_VEC_DISTANCE_TYPE (4206): Cannot determine distance type for VEC_DISTANCE, index is not found
      

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Sergei Golubchik made transition -
            Open In Progress
            19h 43m 1
            Sergei Golubchik made transition -
            In Progress In Testing
            8s 1
            Sergei Golubchik made transition -
            In Testing Closed
            3d 3h 44m 1

            People

              serg Sergei Golubchik
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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