Fix incorrect class in BaseMacroFunctionExpr.equals. (#16294)

The equals method cast to the wrong class, potentially leading to
ClassCastException.
This commit is contained in:
Gian Merlino 2024-04-16 09:40:46 -07:00 committed by GitHub
parent ad6bd62140
commit cf841b8e67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ public class ExprMacroTable
if (o == null || getClass() != o.getClass()) {
return false;
}
BaseScalarMacroFunctionExpr that = (BaseScalarMacroFunctionExpr) o;
BaseMacroFunctionExpr that = (BaseMacroFunctionExpr) o;
return Objects.equals(macro, that.macro) &&
Objects.equals(args, that.args);
}