tidb: 5.2.1
表结构:
create table xxx
(
id bigint PRIMARY KEY AUTO_RANDOM(8),
uniqueKey varchar(256) null,
xxxx…
constraint idx_unique_key
unique (uniqueKey)
)ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
tispark: 3.1-2.5.1
spark: 3.1.3