FearfulTomcat27 opened a new pull request, #15976: URL: https://github.com/apache/iotdb/pull/15976
This pull request introduces new test cases for SQL queries involving binary operations with constants, along with updates to column transformer logic to handle caching issues and improve performance. Below is a breakdown of the most important changes: ### New Test Cases for SQL Queries * Added `testThenWithBinarySameConstant` in `IoTDBCaseWhenThenIT.java` to validate SQL queries with binary operations involving constants in a `CASE WHEN` statement. * Added `testThenWithBinarySameConstant` in `IoTDBCaseWhenThenTableIT.java` to test similar functionality for table-based queries. * Included a missing import for `TIMESTAMP_STR` in `IoTDBCaseWhenThenTableIT.java`. ### Updates to Column Transformer Logic * Modified `BinaryColumnTransformer` to ensure the right transformer is evaluated after fetching the left transformer’s column, addressing a cache-clearing issue when both transformers share the same constant. * Refactored `MultiColumnTransformer` to use a `List` for storing child columns during evaluation, improving clarity and performance by avoiding repeated stream operations. [[1]](diffhunk://#diff-373ebcf216981407554cdf0d4e3d79bce246bffd19f08e612ad8515c669cfb19R64-R74) [[2]](diffhunk://#diff-373ebcf216981407554cdf0d4e3d79bce246bffd19f08e612ad8515c669cfb19R28) -- 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]
