CREATE TEMPORARY TABLE t1 (a INT) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1);
ALTER TABLE t1 ADD COLUMN(F INT GENERATED ALWAYS AS (a + 1) VIRTUAL), ADD INDEX idx(f), ALGORITHM=COPY;
DELETE FROM t1;
DROP TABLE t1;
