You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (Jira)" <ji...@apache.org> on 2020/07/22 12:50:00 UTC
[jira] [Assigned] (FLINK-18672) Fix Scala code examples for UDF
type inference annotations
[ https://issues.apache.org/jira/browse/FLINK-18672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timo Walther reassigned FLINK-18672:
------------------------------------
Assignee: Timo Walther
> Fix Scala code examples for UDF type inference annotations
> ----------------------------------------------------------
>
> Key: FLINK-18672
> URL: https://issues.apache.org/jira/browse/FLINK-18672
> Project: Flink
> Issue Type: Bug
> Components: Documentation, Table SQL / API
> Reporter: Fabian Hueske
> Assignee: Timo Walther
> Priority: Major
>
> The Scala code examples for the [UDF type inference annotations|https://ci.apache.org/projects/flink/flink-docs-release-1.11/dev/table/functions/udfs.html#type-inference] are not correct.
> For example: the following {{FunctionHint}} annotation
> {code:scala}
> @FunctionHint(
> input = Array(@DataTypeHint("INT"), @DataTypeHint("INT")),
> output = @DataTypeHint("INT")
> )
> {code}
> needs to be changed to
> {code:scala}
> @FunctionHint(
> input = Array(new DataTypeHint("INT"), new DataTypeHint("INT")),
> output = new DataTypeHint("INT")
> )
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)