kobe6th opened a new pull request, #34244:
URL: https://github.com/apache/doris/pull/34244

   ## Proposed changes
   
   Issue Number: close #xxx
   
   when try to modify multiple columns with changed positions, attempting to 
modify a column that has already been moved will result in a 'column not found' 
error.
   `
   CREATE TABLE `test` (
   `id` BIGINT NOT NULL,
   `v1` BIGINT NULL,
   `v2` VARCHAR(128) NULL,
   `v3` VARCHAR(128) NULL
    ) ENGINE=OLAP
    UNIQUE KEY(`id`)
    DISTRIBUTED BY HASH(`id`) BUCKETS 1
    PROPERTIES (
    "replication_allocation" = "tag.location.default: 1"
    );
   Query OK, 0 rows affected (0.00 sec)
   
   ALTER TABLE `test` MODIFY COLUMN `v2` VARCHAR(512) NULL AFTER `v1`, MODIFY 
COLUMN `v3` VARCHAR(512) NULL AFTER `v2`;
   ERROR 1105 (HY000): errCode = 2, detailMessage = Column[v2] does not exists
   `
   
   when column datatype change, shadow prefix will be add to column name, we 
can use NonShadowName to find this column.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to