manner opened a new pull request, #29869: URL: https://github.com/apache/flink/pull/29869
## What is the purpose of the change Backport of the PARSE_XML part of #29520 (039410e17d6) to release-2.4. PARSE_XML is already in 2.4, XML_STRING is not. With this backport, PARSE_XML behaves the same in 2.4 and 2.5. ## Brief change log - `base64Binary` is parsed as `BYTES`. The text has to match the XML Schema grammar, since the Java decoder also accepts missing padding and unused bits that aren't zero. - The declarations of the `xsi` and `xs` prefixes are dropped only if they have the XML Schema namespaces. Declarations with other namespaces are kept as attributes. - A `dateTime` whose offset moves it past the year 9999 in UTC stays a string, like a year after 9999 in the text. - The keys, prefixes and the boolean rule of XML Schema are moved to `XmlVariantNames`. ## Verifying this change This change added tests and can be verified as follows: - Extended `XmlToVariantParserTest` with cases for `base64Binary`, the schema declarations and a `dateTime` past 9999 in UTC. ## 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): yes, the parsing of PARSE_XML - 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 --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes (please specify the tool below) Generated-by: Claude Opus 5.5 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
