monologuist opened a new issue, #420:
URL: https://github.com/apache/doris-flink-connector/issues/420

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Version
   
   Doris:2.1
   doris-flink-connector:1.5.0+
   Flink:1.16.2
   Flink CDC: 3.0.1
   
   
   ### What's Wrong?
   
   I use Flink+Flink CDC to synchronize data from MySQL to Doris. 
   I found that Doris's label generator generates a label name like this: label 
_7_test_cust_d547cac0-d2d8-4705-8769-d1a03d364272. 
   This label contains an illegal "-" hyphen. 
   Such a label name is not recognized and accepted by Doris. 
   When you need to clean this label, an error will be generated: Encountered:-
   
![image](https://github.com/apache/doris-flink-connector/assets/57579439/4ff17c0e-5b02-49cc-8f77-6caafa595ccb)
   <img width="542" alt="Snipaste_2024-07-10_11-25-13" 
src="https://github.com/apache/doris-flink-connector/assets/57579439/d5536d5a-fb80-473d-b045-18401aef9dbe";>
   
![image](https://github.com/apache/doris-flink-connector/assets/57579439/937328ce-fcaa-446d-9231-090c8f82e2bd)
   
   By reading the source code, I found that many label generation methods in 
the LabelGenerator class use the UUID.randomUUID() method to generate random 
numbers. This is where the "-" symbol is introduced. [1]
   
   [1] UUID is usually a string containing 32 hexadecimal characters in the 
following form:
   550e8400-e29b-41d4-a716-446655440000
   Each UUID consists of five parts, separated by hyphens "-".
   
   I think this is a problem and needs to be fixed.
   
   ### What You Expected?
   
   Replace the "-" in label with "_" to ensure the generation of a legal random 
label.
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to