[fix](planner)just return non-empty side of ExprSubstitutionMap if one of ExprSubstitutionMap is empty (#19600)

This commit is contained in:
starocean999
2023-05-17 15:06:43 +08:00
committed by GitHub
parent d9950a6422
commit 3e661a30c2
3 changed files with 55 additions and 2 deletions

View File

@ -154,7 +154,7 @@ public final class ExprSubstitutionMap {
if (f == null) {
return g;
}
if (g == null) {
if (g == null || g.size() == 0) {
return f;
}
ExprSubstitutionMap result = new ExprSubstitutionMap();
@ -230,7 +230,7 @@ public final class ExprSubstitutionMap {
if (f == null) {
return g;
}
if (g == null) {
if (g == null || g.size() == 0) {
return f;
}
ExprSubstitutionMap result = new ExprSubstitutionMap();