Skip to content

Can't find column when to analyze virtual column with vector #62682

Closed

Description

@hawkingrei

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE t1 (
		id bigint NOT NULL,
		c1 varchar(50) NOT NULL,
		c2 int DEFAULT NULL,
		c3 json DEFAULT NULL,
		c4 varchar(255) GENERATED ALWAYS AS (json_unquote(json_extract(c3, '$.oppositePlaceId'))) VIRTUAL,
		c5 vector(3),
		c6 double GENERATED ALWAYS AS (vec_l2_distance(c5, '[0,0,0]')) VIRTUAL,
		PRIMARY KEY (id),
		UNIQUE KEY idx_unique (c1,c2)) ;

analyze table t1 all columns;

2. What did you expect to see? (Required)

success

3. What did you see instead (Required)

(1105, "Can't find column Column#6 in schema Column: [test.t1.id,test.t1.c1,test.t1.c2,test.t1.c4,test.t1.c6,test.t1.c3] PKOrUK: [] NullableUK: []")

4. What is your TiDB version? (Required)

0906244

Activity

  1. added a commit that references this issue on Jul 29, 2025
    5a0343f
  2. added a commit that references this issue on Aug 10, 2025
    48010d2
  3. added a commit that references this issue on Sep 17, 2025
    1e08d59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions