dawidwys commented on code in PR #25582:
URL: https://github.com/apache/flink/pull/25582#discussion_r1827905392
##########
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:
Yep, I can see `runtimeDeferred` does nothing:
```
/**
* Specifies that this {@link BuiltInFunctionDefinition} will be
mapped to a Calcite
* function.
*/
public Builder runtimeDeferred() {
// This method is just a marker method for clarity. It is
equivalent to calling
// neither {@link #runtimeProvided} nor {@link #runtimeClass}.
return this;
}
```
##########
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:
Yep, I can see `runtimeDeferred` does nothing:
```
/**
* Specifies that this {@link BuiltInFunctionDefinition} will be
mapped to a Calcite
* function.
*/
public Builder runtimeDeferred() {
// This method is just a marker method for clarity. It is
equivalent to calling
// neither {@link #runtimeProvided} nor {@link #runtimeClass}.
return this;
}
```
added this call
--
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]