danny0405 commented on a change in pull request #13577:
URL: https://github.com/apache/flink/pull/13577#discussion_r508163601
##########
File path:
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/functions/utils/TableSqlFunction.scala
##########
@@ -82,9 +83,16 @@ class TableSqlFunction(
override def toString: String = displayName
- override def getRowType(
+ override def getRowTypeInference: SqlReturnTypeInference = new
SqlReturnTypeInference {
+ override def inferReturnType(opBinding: SqlOperatorBinding): RelDataType =
{
+ val arguments = convertArguments(opBinding, functionImpl, getNameAsId)
+ getRowType(opBinding.getTypeFactory, arguments)
+ }
+ }
Review comment:
It is needed because `getRowType` needs to be overridden.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]