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

   This pull request introduces a new test case and improves the logic for 
handling `CASE WHEN` transformations. The most important changes include adding 
a new test to verify multiple `WHEN` clause satisfaction and enhancing the 
transformation logic to handle uninitialized branches.
   
   ### New Test Case:
   * 
[`integration-test/src/test/java/org/apache/iotdb/db/it/query/IoTDBCaseWhenThenIT.java`](diffhunk://#diff-17d68169af2e9f080b744801580ee66a28ac479b71c49a745460b932f0af5464R890-R909):
 Added a new test method `testMultipleSatisfyCase` to verify the behavior when 
multiple `WHEN` clauses are satisfied.
   
   ### Transformation Logic Improvement:
   * 
[`iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/transformation/dag/column/AbstractCaseWhenThenColumnTransformer.java`](diffhunk://#diff-1cea02ca1c6972693f34174ef72701635fa40779c9ec54c328924d5ca4ef95b3R104-R112):
 Updated the `doTransform` method to include a check for uninitialized branches 
(`branchIndexForEachRow[j] == -1`).


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