mrhhsg opened a new pull request, #63300:
URL: https://github.com/apache/doris/pull/63300

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: None
   
   Problem Summary: Fixes Jira DORIS-25570. json_keys/jsonb_keys rejected 
ordinary wildcard paths but allowed super wildcard paths such as $**.a to fall 
through and return NULL. The function only supports reading keys from a single 
object, so super wildcard paths should fail with the same INVALID_JSON_PATH 
error as other wildcard paths.
   
   ### Release note
   
   Reject unsupported super wildcard JSON paths in json_keys/jsonb_keys instead 
of returning NULL.
   
   ### Check List (For Author)
   
   - Test: Unit Test / Regression test / Static check
       - Unit Test: ./run-be-ut.sh --run 
--filter=FunctionJsonbTEST.JsonbKeysRejectSuperWildcardPath
       - Regression test: Added 
regression-test/suites/jsonb_p0/test_jsonb_keys_invalid_path.groovy (not run 
locally; no FE/BE cluster was listening on configured regression ports)
       - Static check: build-support/check-format.sh
       - Static check: build-support/run-clang-tidy.sh --build-dir 
be/ut_build_ASAN (failed due to pre-existing function_jsonb.cpp complexity 
diagnostics and toolchain header/NOLINTEND errors)
   - Behavior changed: Yes (json_keys/jsonb_keys now return INVALID_JSON_PATH 
for $** paths instead of NULL)
   - 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]

Reply via email to