goutamadwant opened a new pull request, #40330:
URL: https://github.com/apache/beam/pull/40330

   Fixes #26492
   
   Long MongoDB string IDs can overflow when `LexicographicKeyRangeTracker` 
converts the integer delta to `float` before division.
   
   This uses Python 3 true division directly and adds regression coverage for 
long `bytes` and `str` keys.
   
   Before: 400-character keys raise `OverflowError: int too large to convert to 
float`.
   
   After: the same keys return the expected fraction (`0.48`).
   
   Tests:
   - `python -m unittest -q apache_beam.io.range_trackers_test` — 28 passed
   - `python -m unittest -q apache_beam.io.mongodbio_test` — 131 passed


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