[fix](planner)just return non-empty side of ExprSubstitutionMap if one of ExprSubstitutionMap is empty (#19600)
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user