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

DESC does not work in ORDER BY with vector key

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • N/A
    • 11.7.1
    • Vector search
    • None

    Description

      --source include/have_sequence.inc
       
      create table t (v vector(1) not null, vector(v));
      insert into t select vec_fromtext(concat('[',seq,']')) FROM seq_1_to_100;
      select vec_totext(v) from t order by vec_distance_euclidean(v,vec_fromtext('[0]')) desc limit 10;
       
      # Cleanup
      drop table t;
      

      6038e1babcdfd2c7762dc83a3256afefc0985b84

      select vec_totext(v) from t order by vec_distance_euclidean(v,vec_fromtext('[0]')) desc limit 10;
      vec_totext(v)
      [1]
      [2]
      [3]
      [4]
      [5]
      [6]
      [7]
      [8]
      [9]
      [10]
      

      Attachments

        Issue Links

          Activity

            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.