924060929 commented on code in PR #65889:
URL: https://github.com/apache/doris/pull/65889#discussion_r3628618198
##########
fe/fe-core/src/main/java/org/apache/doris/qe/cache/CacheAnalyzer.java:
##########
@@ -459,6 +461,9 @@ private CacheTable
buildCacheTableForOlapScanNode(OlapScanNode node) {
for (Long partitionId : node.getSelectedPartitionIds()) {
Partition partition = olapTable.getPartition(partitionId);
+ if (partition == null) {
+ continue;
+ }
Review Comment:
I think you should throw exception and not use cache in this case
--
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]