mrhhsg opened a new pull request, #63517:
URL: https://github.com/apache/doris/pull/63517
### What problem does this PR solve?
Issue Number: None
Problem Summary: JSONB path serialization emitted raw control characters in
member names. This could make paths returned by JSON functions or shown in
diagnostics contain raw newlines/tabs and fail path round-trip parsing. Escape
JSONB path member names with JSON-compatible sequences and decode those
sequences while parsing path members.
### Release note
None
### Check List (For Author)
- Test:
- Unit Test: `./run-be-ut.sh --run
--filter=JsonbDocumentTest.jsonb_path_member_to_string_escapes_control_characters
-j 16`
- Format check: `build-support/clang-format.sh`;
`build-support/check-format.sh`; `git diff --check`
- Static Analysis: attempted `build-support/run-clang-tidy.sh --base
d7d516ff7b60e2ff6971e7d18cd805478595b5c2 --build-dir be/ut_build_ASAN`, blocked
by existing clang-tidy/toolchain diagnostics outside the change
- Behavior changed: Yes. JSONB path member serialization now escapes control
characters instead of emitting raw control bytes.
- Does this need documentation: No
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]