Skip to content

Commit

Permalink
Fix incorrect class in BaseMacroFunctionExpr.equals. (#16294)
Browse files Browse the repository at this point in the history
The equals method cast to the wrong class, potentially leading to
ClassCastException.
  • Loading branch information
gianm authored Apr 16, 2024
1 parent ad6bd62 commit cf841b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public boolean equals(Object o)
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);
}
Expand Down

0 comments on commit cf841b8

Please sign in to comment.