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

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: None
   
   Problem Summary:
   
   `file_cache_query_limit_percent` defaults to `-1` to inherit 
`Config.file_cache_query_limit_max_percent`, but its session-variable checker 
only accepted values from 1 through the configured maximum. After setting a 
concrete percentage, `SET file_cache_query_limit_percent = DEFAULT` therefore 
failed because it resolves to `-1`.
   
   This change accepts the `-1` inheritance sentinel while preserving the 
existing positive range validation. It adds unit and regression coverage for 
`SET DEFAULT`, explicit `-1`, boundary values, and invalid values.
   
   ### Release note
   
   Allow `file_cache_query_limit_percent` to be reset to its `-1` inheritance 
default with `SET DEFAULT` or set explicitly to `-1`.
   
   ### Check List (For Author)
   
   - Test: Unit Test
     - `sh run-fe-ut.sh --run "org.apache.doris.qe.VariableMgrTest"`
     - `sh build.sh --fe`
   - Behavior changed: Yes. The `-1` inheritance sentinel is now accepted by 
the session variable checker.
   - 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