luoyuxia opened a new pull request, #2980:
URL: https://github.com/apache/fluss/pull/2980

   ### Purpose
   
   Linked issue: close #2979
   
   Fix a bug in the Paimon sorted PK reader when the primary key contains a 
timestamp field.
   
   The log side stores keys as projected primary-key rows, but 
`PaimonSortedRecordReader` adapted those rows with the full table `RowType` 
before passing them to the Paimon key comparator. For composite primary keys 
containing `TIMESTAMP`, this could make timestamp fields resolve against the 
wrong full-row position and fail with `Unsupported data type to get timestamp: 
STRING NOT NULL`.
   
   ### Brief change log
   
   - build the Fluss-to-Paimon comparator adapter with the primary-key 
`RowType` instead of the full table `RowType`
   - add a regression test covering a composite primary key that contains a 
timestamp field
   
   ### Tests
   
   - `./mvnw -pl fluss-lake/fluss-lake-paimon 
-Dtest=PaimonSortedRecordReaderTest test`
   
   ### API and Format
   
   No API or storage format changes.
   
   ### Documentation
   
   No documentation changes.
   


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