Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/3623#discussion_r112675413
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/functions/TableFunction.scala
---
@@ -131,8 +129,16 @@ 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)
+ * @param classes The type classes of the parameters.
* @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],
+ classes: java.util.List[Class[_]]): TypeInformation[T]
= null
--- End diff --
rename `classes` to `argTypes`?
---
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 [email protected] or file a JIRA ticket
with INFRA.
---