[fix](Nereids) remove getTableInMinidumpCache temporary (#35571)

bug introduced by #18747

getTableInMinidumpCache use wrong way to compare table's qualified name.
we remove it temporary since it not use in productive env anymore
This commit is contained in:
morrySnow
2024-05-29 20:22:33 +08:00
committed by yiguolei
parent 4d16856536
commit f6e8c5324d
2 changed files with 4 additions and 7 deletions

View File

@ -148,13 +148,8 @@ public class BindRelation extends OneAnalysisRuleFactory {
List<String> tableQualifier = RelationUtil.getQualifierName(cascadesContext.getConnectContext(),
unboundRelation.getNameParts());
TableIf table = null;
if (!CollectionUtils.isEmpty(cascadesContext.getTables())) {
table = cascadesContext.getTableInMinidumpCache(tableName);
}
if (table == null) {
if (customTableResolver.isPresent()) {
table = customTableResolver.get().apply(tableQualifier);
}
if (customTableResolver.isPresent()) {
table = customTableResolver.get().apply(tableQualifier);
}
// In some cases even if we have already called the "cascadesContext.getTableByName",
// it also gets the null. So, we just check it in the catalog again for safety.