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

Incorrect error/docs for Vector column lengths (max = 65532)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 11.8, 12.0(EOL), 12.1
    • 11.8.3
    • Vector search
    • None
    • Can result in unexpected behaviour

    Description

      CS 12.1.0 6a2afb42ba86188ccda0972f9c2df363f34e10a0 (Debug) Build 10/06/2025

      12.1.0-dbg>CREATE TABLE t1(v VECTOR (16384) NOT NULL,VECTOR (v)) ENGINE=InnoDB;
      ERROR 1074 (42000): Column length too big for column 'v' (max = 65532); use BLOB or TEXT instead
       
      12.1.0-dbg>CREATE TABLE t1(v VECTOR (16383) NOT NULL,VECTOR (v)) ENGINE=InnoDB;
      Query OK, 0 rows affected (0.012 sec)
      

      Besides the error, please also check if there is a off-by-one error, i.e. 16k=16384.

      Also, https://mariadb.com/docs/server/reference/data-types/numeric-data-types/vector mentions 65532 as well.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              Roel Roel Van de Paar
              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.