TiBigData's AutoRandom ID assignment implementation is inconsistent with the TiDB implementation. IDs assigned in TiBigData will be reassigned in TiDB.
What did you do
CREATE TABLE `tiflink_test`.`4015fe27517944ec8cfc3822221b2aa9`(
id bigint unsigned PRIMARY KEY clustered AUTO_RANDOM(1),
number bigint
)
First , insert some row by TiBigData to table like above. Then, use mysql client to insert a row to table.
What do you expect
Successfully inserted
What happens instead
The bug is cause by the autorandom id's meta prefix use in TiBigData is different from TiDB.
In TiDB, autorandom id's meta prefix is "TARID" , but in TiBigData, autorandom id's meta prefix is "TID".
TiDB
TiBigData
Flink/Presto/MapReduce/Trino/Hive and TiBigData version info
master
Describe the bug
TiBigData's AutoRandom ID assignment implementation is inconsistent with the TiDB implementation. IDs assigned in TiBigData will be reassigned in TiDB. What did you do
First , insert some row by TiBigData to table like above. Then, use mysql client to insert a row to table.
What do you expect
Successfully inserted
What happens instead
The bug is cause by the autorandom id's meta prefix use in TiBigData is different from TiDB. In TiDB, autorandom id's meta prefix is "TARID" , but in TiBigData, autorandom id's meta prefix is "TID". TiDB
TiBigData
![image](https://user-images.githubusercontent.com/38561029/190366564-c9927849-b753-4df4-b701-b63b84d3b323.png)
Flink/Presto/MapReduce/Trino/Hive and TiBigData version info master