snuyanzin commented on code in PR #30059:
URL: https://github.com/apache/flink/pull/30059#discussion_r4659117321


##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/bridging/BridgingSqlAggFunction.java:
##########
@@ -172,6 +175,27 @@ public boolean isDeterministic() {
         return resolvedFunction.getDefinition().isDeterministic();
     }
 
+    /**
+     * Compares the function identifier in addition to Calcite's class, name, 
and kind. The name is
+     * only the simple name, so without the identifier the catalog functions 
{@code db1.agg} and
+     * {@code db2.agg} would be equal, and calls to them with the same 
arguments would be merged
+     * into one aggregate call. Inline functions have no identifier and are 
compared by their
+     * generated name.
+     */
+    @Override
+    public boolean equals(@Nullable Object o) {
+        if (!super.equals(o)) {
+            return false;
+        }
+        final BridgingSqlAggFunction that = (BridgingSqlAggFunction) o;

Review Comment:
   same as https://github.com/apache/flink/pull/30059/changes#r4659116170



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to