jackylee-ch commented on PR #10372: URL: https://github.com/apache/paimon/pull/10372#issuecomment-5982008121
Good catch. The 64th SET member sets bit 63 (decimal 2^63 > Long.MAX_VALUE), so even the signed-long parse threw NumberFormatException. Switched to `Long.parseUnsignedLong`, so the full 64-member range decodes — the loop already shifts unsigned (`>>>`). Added a `SET(64)` case asserting the 64th member resolves to `[c63]`; it fails on the signed parse. On scope: the production path is Canal (`CanalRecordParser` → `convertSet`); I've tied the claim there. `AliyunFieldParser` is byte-identical duplicated code, fixed in parallel to stay correct for when it is wired to a record parser — its unit test exercises the helper, not a DTS job. Pushed in 50c03c1af. -- 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]
