xy720 commented on code in PR #67542:
URL: https://github.com/apache/doris/pull/67542#discussion_r3954759761
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java:
##########
@@ -1945,6 +1945,18 @@ public long getRowCountForPartitionIndex(long
partitionId, long indexId, boolean
return index.getRowCount() == -1 ? 0 : index.getRowCount();
}
+ /**
+ * Whether the table has any partition that has ever been loaded.
+ */
+ public boolean hasData() {
+ for (Partition p : idToPartition.values()) {
+ if (p.hasData()) {
Review Comment:
The FE promotion window this describes is real, but the practical impact is
smaller than the comment suggests
--
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]