raminqaf opened a new pull request, #30091:
URL: https://github.com/apache/flink/pull/30091
## What is the purpose of the change
Backport of #30051 to release-2.4. `BinaryVariantUtil#nanosSinceEpoch`
throws for the first second of the nanosecond timestamp range, `1677-09-21
00:12:43.145224192` to `1677-09-21 00:12:43.999999999`, although these values
fit into a `long`. `PARSE_XML` catches the exception and falls back to
microseconds, and `BinaryVariantBuilder` rejects the values. Merging this
before 2.4.0 keeps the bug out of the release.
## Brief change log
- Cherry-pick of 560e439983b, applied without conflicts
## Verifying this change
`BinaryVariantTest` and `XmlToVariantParserTest` pass on this branch.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): no
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: no
- The serializers: no
- The runtime per-record code paths (performance sensitive): no
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
- The S3 file system connector: no
## Documentation
- Does this pull request introduce a new feature? no
- If yes, how is the feature documented? not applicable. The 2.4 docs
already give the full range from `1677-09-21 00:12:43.145224192`.
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes (please specify the tool below)
Generated-by: Claude Code 2.1.331 (Claude Sonnet 5.5)
--
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]