dawidwys commented on code in PR #25582:
URL: https://github.com/apache/flink/pull/25582#discussion_r1827568739


##########
flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/BuiltInFunctionDefinitions.java:
##########
@@ -780,6 +780,22 @@ ANY, and(logical(LogicalTypeRoot.BOOLEAN), LITERAL)
                     .outputTypeStrategy(TypeStrategies.aggArg0(t -> t, true))
                     .build();
 
+    public static final BuiltInFunctionDefinition LEAD =
+            BuiltInFunctionDefinition.newBuilder()
+                    .name("lead")
+                    .kind(AGGREGATE)
+                    .inputTypeStrategy(SpecificInputTypeStrategies.LEAD_LAG)
+                    .outputTypeStrategy(SpecificTypeStrategies.LEAD_LAG)

Review Comment:
   Apparently, it has runtime implications not just bookkeeping.
   
   The way I understand it from the failing test, if `runtimeProvided` is used 
the `BuiltinFunctionDefinition` will be converted to `BridgingSqlAggFunction` 
instead of calcite's `SqlLeadLagFunction` which we depend on in lots of places 
including code generation.
   
   I reverted it back. Please let me know wdyt.



-- 
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