mirror of https://github.com/apache/druid.git
Fix incorrect class in BaseMacroFunctionExpr.equals. (#16294)
The equals method cast to the wrong class, potentially leading to ClassCastException.
This commit is contained in:
parent
ad6bd62140
commit
cf841b8e67
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue