kafka-connect-storage-common
kafka-connect-storage-common copied to clipboard
Added int64 customer formatter
Problem
The avro int64 type with logicalType timestamp-millis becomes Date class in Java. Current FieldPartitioner cast it to Number class which throws exception.
Solution
If int64 type is Date object, use the SimpleDateFormat to convert the Date to string.
Related Issues
[ch124048]
Does this solution apply anywhere else?
- [ ] yes
- [ ] no
If yes, where?
Test Strategy
Testing done:
- [ ] Unit tests
- [ ] Integration tests
- [ ] System tests
- [ ] Manual tests
Release Plan
@kerdosa Thanks for the contribution, would you mind adding a unit and integration test for this?