davidradl commented on code in PR #27775:
URL: https://github.com/apache/flink/pull/27775#discussion_r2945229702
##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/expressions/resolver/rules/ResolveCallByArgumentsRule.java:
##########
@@ -681,6 +681,23 @@ public List<DataType> getArgumentDataTypes() {
.collect(Collectors.toList());
}
+ @Override
+ public Optional<String> getArgumentName(int pos) {
+ final ResolvedExpression arg = getArgument(pos);
+
+ if (arg instanceof CallExpression) {
+ final CallExpression call = (CallExpression) arg;
+ if (call.getFunctionDefinition() ==
BuiltInFunctionDefinitions.AS) {
Review Comment:
I notice
[here](https://stackoverflow.com/questions/1503295/t-sql-aliasing-using-versus-as)
there is a way of aliasing using `=` as well as `AS`. Does Flink support this?
If so can we add a unit test to ensure this works in the same way as `AS`.
--
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]