hongzhi-gao opened a new pull request, #18759:
URL: https://github.com/apache/iotdb/pull/18759

     ## Description
   
     Fix table `INSERT` statements that use unsupported time expressions. They 
now return a semantic error instead of exposing a `ClassCastException`. Valid
     timestamps and `NULL` keep their existing behavior.
   
     The parser now uses the existing `AstUtil.expressionToTimestamp` method, 
so both insert paths apply the same validation. Integration tests cover 
supported
     values, unsupported expressions, and prepared statements.
   
     Validation: Spotless passed; Maven `test-compile` passed for all 39 
modules. Integration tests were added but not run.
   
     This PR has:
     - [x] been self-reviewed.
     - [x] added integration tests.
   
     ##### Key changed/added classes
   
     - `AstBuilder`: delegates timestamp conversion to `AstUtil`.
     - `IoTDBInsertTableIT`: covers supported and unsupported time values.
     - `IoTDBTablePreparedStatementIT`: covers rejected time parameters.


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