Github user clarkyzl commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3623#discussion_r110317256
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/functions/TableFunction.scala
 ---
    @@ -131,8 +129,14 @@ abstract class TableFunction[T] extends 
UserDefinedFunction {
         * method. Flink's type extraction facilities can handle basic types or
         * simple POJOs but might be wrong for more complex, custom, or 
composite types.
         *
    +    * The input arguments are the input arguments which are passed to the 
eval() method.
    +    * Only the literal arguments (constant values) are passed to the 
[[getResultType()]] method.
    +    * If non-literal arguments appear, it will pass nulls instead.
    +    *
    +    * @param arguments arguments of a function call (only literal arguments
    +    *                  are passed, nulls for non-literal ones)
         * @return [[TypeInformation]] of result type or null if Flink should 
determine the type
         */
    -  def getResultType: TypeInformation[T] = null
    +  def getResultType(arguments: java.util.List[AnyRef]): TypeInformation[T] 
= null
    --- End diff --
    
    I have updated the pull request and added a `List[TypeInformation[_]`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to