You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: CTAS keeps AUTO_INCREMENT attribute differently from MySQL #24433
The CTAS target table should not retain AUTO_INCREMENT in this case and should match MySQL behavior.
Steps to Reproduce
drop table if exists table02;
drop table if exists table01;
create table table01 (
id int auto_increment primary key,
col1 varchar(255) not null
);
insert into table01 (col1) values ('Value2'), ('Value3');
create table table02 as select * from table01;
show create table table02;
desc table02;
select * from table02;
Activity
Ariznawlll commentedon May 18, 2026
Closing in favor of summary tracker #24436. This issue was split from #14792 during re-verification and is now tracked centrally in #24436.
fix: do not retain AUTO_INCREMENT in CTAS result columns (#27475)
fix: do not retain AUTO_INCREMENT in CTAS result columns (matrixorigi…
fix: do not retain AUTO_INCREMENT in CTAS result columns (matrixorigi…
fix: do not retain AUTO_INCREMENT in CTAS result columns (matrixorigi…