JingsongLi opened a new pull request, #1744:
URL: https://github.com/apache/incubator-paimon/pull/1744

   <!-- Please specify the module before the PR name: [core] ... or [flink] ... 
-->
   
   ### Purpose
   
   <!-- Linking this pull request to the issue -->
   **Sequence Auto Padding**:
   
   When the record is updated or deleted, the `sequence.field` must become 
larger and cannot remain unchanged.
   For -U and +U, their sequence-fields must be different. If you cannot meet 
this requirement, Paimon provides
   option to automatically pad the sequence field for you.
   
   1. `'sequence.auto-padding' = 'row-kind-flag'`: If you are using same value 
for -U and +U, just like "`op_ts`"
   (the time that the change was made in the database) in Mysql Binlog. It is 
recommended to use the automatic
   padding for row kind flag, which will automatically distinguish between -U 
(-D) and +U (+I).
   
   2. Insufficient precision: If the provided `sequence.field` doesn't meet the 
precision, like a rough second or
   millisecond, you can set `sequence.auto-padding` to `second-to-micro` or 
`millis-to-micro` so that the precision
   of sequence number will be made up to microsecond by system.
   
   
   <!-- What is the purpose of the change -->
   
   ### Tests
   
   <!-- List UT and IT cases to verify this change -->
   
   ### API and Format
   
   <!-- Does this change affect API or storage format -->
   
   ### Documentation
   
   <!-- Does this change introduce a new feature -->
   


-- 
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]

Reply via email to