JackieTien97 opened a new pull request, #18149:
URL: https://github.com/apache/iotdb/pull/18149

   ## Summary
   
   This PR makes `rest_query_default_row_size_limit` the hard upper bound for 
REST and Grafana query responses.
   
   ## Changes
   
   - Cap user-provided REST `rowLimit` / `row_limit` with 
`rest_query_default_row_size_limit`.
   - Apply the same limit to Grafana variables, node, and expression endpoints 
instead of passing an unlimited `0`.
   - Enforce the cap in v2 fast-last cache-hit responses, which previously 
built the response directly.
   - Centralize row-limit calculation and exceeded-limit response handling in 
`QueryRowLimitUtils`.
   - Update OpenAPI/config comments to describe the setting as a maximum 
response row limit.
   - Add focused regression tests for hard-cap resolution and exact-limit 
dataset handling.
   
   ## Validation
   
   - `mvn spotless:apply -pl external-service-impl/rest`
   - `mvn test -pl external-service-impl/rest 
-Dtest=QueryRowLimitUtilsTest,QueryDataSetHandlerTest`
   - `mvn test-compile -pl external-service-impl/rest -P with-zh-locale 
-DskipTests`
   - `mvn test-compile -pl external-service-impl/rest-openapi -DskipTests`
   - `git diff --check`
   


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

Reply via email to