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

   ## Description
   
   Fix aligned multi-measurement LAST queries that may hang when a time filter 
excludes the only remaining chunk after selected-column pruning.
   
   For aligned series, pruning chunks with no values in the selected 
measurements can leave a singleton chunk whose statistics differ from the 
time-series metadata statistics. `DiskAlignedChunkMetadataLoader` previously 
skipped time filtering when only one chunk remained, allowing an out-of-range 
chunk to enter the scan state machine without being consumed.
   
   ## Changes
   
   - Apply chunk-level time filtering to every non-empty aligned chunk metadata 
list, including singleton lists.
   - Add an integration test covering a multi-measurement LAST query whose 
selected measurements only exist outside the query time range.
   
   ## Testing
   
   - Added `IoTDBAlignedLastQueryWithTimeFilterIT`.
   - Not run locally.
   


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