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

   ## Description
   
   Validate tree- and table-model SQL before analysis when a node is read-only, 
so rejected mutations cannot create schema or allocate partitions. Check the 
resolved statement behind EXPLAIN, EXPLAIN ANALYZE, EXECUTE, and EXECUTE 
IMMEDIATE, while allowing strict reads and internal schema queries.
   
   Keep database deletion and explicit TTL assignments on their existing 
authorization and persistence paths as disk-recovery exceptions. Reject TTL 
resets and assignments mixed with other properties, and retain session 
operations, recovery to RUNNING, and internal attribute-sync registration.
   
   Copy prepared VALUES payloads for each execution so analysis and ATTRIBUTE 
removal do not mutate the registered AST. Include row payloads, failed 
measurements, retained values, and exception messages in prepared-statement 
memory accounting.
   
   ## Validation
   
   - Independently reviewed the complete change with no new actionable findings.
   - All 119 targeted DataNode unit tests passed, with no failures, errors, or 
skipped tests; verified the generated Surefire XML reports.
   - The test command's PowerShell wrapper terminated on stderr output, so its 
final Maven exit code was unavailable. A separate 28-module reactor test 
compilation completed with exit code 0, without repeating the tests.
   - Spotless, Checkstyle, and whitespace checks passed. Integration coverage 
was added for read-only SQL, recovery exceptions, and repeated prepared VALUES 
execution; integration tests, a full build, and the Chinese-locale build were 
not rerun during this review.
   
   <hr>
   
   This PR has:
   - [x] been self-reviewed.
   - [x] added unit tests or modified existing tests to cover new code paths.
   - [x] added integration tests.
   


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