luwei16 opened a new pull request, #69494:
URL: https://github.com/apache/doris/pull/69494

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: None
   
   Problem Summary: Incremental queries on RANGE or LIST partitioned tables can 
return empty results when TABLET(...) specifies valid tablets from a separate 
changelog index. Partition pruning enumerates the physical base index instead 
of the changelog wrapper's index, removes the matching partitions, and produces 
an empty relation. Resolve the index through the table's existing 
getPartitionIndex API, consistent with scan-range generation and its 
base-tablet compatibility fallback.
   
   ### Release note
   
   Fix empty results from incremental queries on partitioned changelog tables 
when changelog tablets are explicitly selected.
   
   ### Check List (For Author)
   
   - Test: Unit Test
       - FE_UT_PARALLEL=1 bash run-fe-ut.sh --run 
'PruneOlapScanPartitionTest,OlapTableWrapperTest,PruneEmptyPartitionTest' (21 
passed)
       - The RANGE/LIST queries without WHERE reproduced LogicalEmptyRelation 
before the fix.
       - Cover explicit partitions and filters, multiple tablets, invalid 
tablets, ordinary scans, base-tablet fallback, and generated scan tablets.
       - FE Core Checkstyle and git diff --check
   - Behavior changed: Yes (valid changelog tablet selections retain their 
partitions)
   - Does this need documentation: No


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to