[typo] translate comment in Chinese to English in SingleNodePlanner (#8038)

This commit is contained in:
dataroaring
2022-02-16 11:57:12 +08:00
committed by GitHub
parent bb4881bb04
commit aee9273a09

View File

@ -711,8 +711,11 @@ public class SingleNodePlanner {
candidates.add(new Pair<>(ref, new Long(materializedSize)));
LOG.debug("The candidate of " + ref.getUniqueAlias() + ": " + materializedSize);
}
// (ML): 这里感觉是不可能运行到的,因为起码第一个节点是inner join
if (candidates.isEmpty()) return null;
if (candidates.isEmpty()) {
// This branch should not be reached, because the first one should be inner join.
LOG.warn("Something wrong happens, the code should not be runned");
return null;
}
// order candidates by descending materialized size; we want to minimize the memory
// consumption of the materialized hash tables required for the join sequence