yifanwu-sys opened a new pull request, #64645:
URL: https://github.com/apache/doris/pull/64645

   ### What problem does this PR solve?
   
   The `url_decode` regression test mainly covers valid URL decoding cases, but 
malformed percent-encoding inputs are not explicitly covered.
   
   Malformed inputs such as truncated percent sequences or invalid hex 
characters should return an error. Without regression coverage, this behavior 
may be changed accidentally in future updates.
   
   ### What is changed?
   
   This PR adds regression test cases for malformed percent-encoding inputs in 
`test_url_decode.groovy`, including:
   
   * truncated percent sequence: `'%2'`
   * bare percent sign: `'%'`
   * trailing percent sign: `'hello%'`
   * invalid hex characters: `'%GG'`
   * mixed valid and invalid encoding: `'%20%GG%41'`
   * consecutive percent signs: `'%%20'`
   
   Each case verifies that `url_decode` raises the expected error:
   
       Decode url failed
   
   ### Behavior change
   
   No behavior is changed.
   
   This PR only adds regression test coverage for the existing error behavior 
of `url_decode`.
   
   ### Impact
   
   Test-only change. It does not affect build behavior, runtime behavior, SQL 
execution logic, storage behavior, or compatibility.
   
   ### Check
   
   * Added malformed input cases to the existing `url_decode` regression test.
   * No core code was modified.
   * No `.out` file update is required because these are error assertion cases.


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